Part Number Hot Search : 
APTGT1 DM74AL 930908 06400 1N524 M54539P T0510XH B80C53
Product Description
Full Text Search
 

To Download RFM69W-868S2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  page 1 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com rfm69w ism transceiver module v 1 . 3 general description the rfm69w is a transceiver module capable of operation over a wide frequency range, including the 315,433, 868 and 915mhz license-free ism (industry scientific and medical) frequency bands. all major rf communication parameters are programmable and most of them can be dynamically set. the rfm69w offers the unique advantage of programmable narrow-band and wide- band communication modes the rfm69w is optimized for low power consumption while offering high rf output power and channelized operation. compliance etsi and fcc regulations. in order to better use rfm69w modules, this specification also involves a large number of the parameters and functions of its core chip rf69's,including those ic pins which are not leaded out. all of these can help customers gain a better understanding of the performance of rfm69w modules, and enhance the application skills. key product features ? +13 dbm power output capability ? high sensitivity: down to -120 dbm at 1.2 kbps ? high selectivity: 16-tap fir channel filter ? bullet-proof front end: iip3 = -18 dbm, iip2 = +35 dbm, 80 db blocking immunity, no image frequency response ? low current: rx = 16 ma, 100na register retention ? programmable pout: -18 to +13 dbm in 1db steps ? constant rf performance over voltage range of module ? fsk bit rates up to 300 kb/s ? fully integrated synthesizer with a resolution of 61 hz ? fsk, gfsk, msk, gmsk and ook modulations ? built-in bit synchronizer performing clock recovery ? incoming sync word recognition ? 115 db+ dynamic range rssi ? automatic rf sense with ultra-fast afc ? packet engine with crc-16, aes-128, 66-byte fifo ? built-in temperature sensor ? module size:19.7x16mm applications applications ? automated meter eading ? wireless sensor networks ? homeand building automation ? wireless alarm and security systems ? industrial monitoring and control ? wireless m-bus ordering info rfm69w
page 2 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com table of contents page 1. general description ................................................................................................................... ............................. 8 1.1. simplified block diagram ............................................................................................................................... 8 1.2. pin and marking diagram........................................................................................................................ .......... 9 1.3. pin description .............................................................................................................................. ............. 10 2. electrical characteristics................................................................................................................ ........................ 11 2.1. esd notice......................................................................................................................... ............................. 11 2.2. absolute maximum ratings .................................. ............................... .................. .............. .................. 11 2.3. operating range.......................................................................................................................... ................... 11 2.4. module specification ..... .......................... ....................................... ................. .............. ........................ 12 2.4.1. power consumption ................................... ................ .......................... .................. ................. ............... .. 12 2.4.2. frequency synthesis .............................................................................................................................. .. 12 2.4.3. receiver ............................................................................................................................... ...................... 13 2.4.4. transmitter ............................................................................................................ ................................... 14 2.4.5. digital specification ......... ................................ ................... ...................................... ............................... 15 3. module description.................................................................................................................... .............................. 16 3.1. power supply strategy....................................................................................................................... .............16 3.2. frequency synthesis...................................................................................................................... ................. 16 3.2.1. reference oscillator ................................. .................... ........................... ................. ............... .............. ... 16 3.2.2. clkout output .......................................................................................................... ............................. 17 3.2.3. pll architecture ......................................... .................. ..................................... ................. ............. ......... 17 3.2.4. lock time ............................................................................................................................... ..................... 18 3.2.5. lock detect indicator................................ .................. .......................... ............. .......... ............................. 18 3.3. transmitter description ............................................................................................................................... ... 19 3.3.1. architecture description ............................................................................................... ............................ 19 3.3.2. bit rate setting .......... ................................ ................ ........................ ..................... ................................. 19 3.3.3. fsk modulation .......................................... .................. .................................. ................ ................ ........... 20 3.3.4. ook modulation .............................................................................................................................. ......... 20 3.3.5. modulation shaping........................................................................................................................ ............ 21 3.3.6. power amplifiers .............. ................................ ................... .................... .................. ............................... 21 3.3.7. high power settings ................................ .................. .......................... ............. ........... ............................. 22 3.3.8. output power summary ............................................................................................................................ 2 2 3.3.9. over current protection ................................................................................................ ............................ 22 3.4. receiver description .............................................................................................................................. 23 3.4.1. block diagram ..................... ..................................... ................. .................................................... ........... 23 3.4.2. lna - single to differential buffer ........................................................................................... ................. 23 3.4.3. automatic gain control ........................................................................................................ .................... 24 3.4.4. continuous-time dagc........................................................................................................... ................ 25 3.4.5. quadrature mixer - adcs - decimators........................................................................................... ......... 26 3.4.6. channel filter .............................................................................................................................. ............. 26 3.4.7. dc cancellation ............................................................................................................... ........................ 27
page 3 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.8. complex filter - ook ............................................................................................................................... 27 3.4.9. rssi .............................................................................................................................. ........................... 27 3.4.10. cordic ........................................... ............................ ....................................................... ....................... 28 3.4.11. fsk demodulator ................. .............................. ................... ................. .................... .............................29 3.4.12. ook demodulator .............................................................................................................................. .... 29 3.4.13. bit synchronizer ............................................................................................................................... ...... 31 3.4.14. frequency error indicator...................................................................................................... ................. 31 3.4.15. automatic frequency correction ............................................................................................................ 32 3.4.16. optimized setup for low modulation index systems ................... ............................. ............................. 33 3.4.17. temperature sensor ............................................................................................................ ................... 34 3.4.18. timeout function.............................. .......................................... ....................................... ..................... 34 4. operating modes ............................................................................................................................... ..................... 35 4.1. basic modes................... ................................. ................................ ................. ............... .............................. 35 4.2. automatic sequencer and wake-up times .................................................................................................. 35 4.2.1. transmitter startup time ............................................................................................... ........................... 36 4.2.2. tx start procedure ..................................................................................................... .............................. 36 4.2.3. receiver startup time................................................................................................... ........................... 36 4.2.4. rx start procedure .................... ........................... ............... ................................. ................ ............... ..... 38 4.2.5. optimized frequency hopping sequences ........................ ......................... ............................................. 38 4.3. listen mode........................................................................................................................... .......................... 39 4.3.1. timings .............................................................................................................................. ....................... 39 4.3.2. criteria ............................... ................................. ...................... ........................................ ........................ 40 4.3.3. end of cycle actions .......................................................................................................... ...................... 40 4.3.4. stopping listen mode...................... .......................................... ........................................... .................... 41 4.3.5. rc timer accuracy ............................................................................................................. ..................... 41 4.4. automodes ............................................................................................................................... ....................... 42 5. data processing..................................................................................................................... ................................. 43 5.1. overview ...................................................................................................................... ................................... 43 5.1.1. block diagram ............................................................................................................................... ........... 43 5.1.2. data operation modes ................................................................................................... .......................... 43 5.2. control block description ............................ ................................ ...................... ................... ......................... 44 5.2.1. spi interface...................................................................................................................... ......................... 44 5.2.2. fifo ............................................................................................................................... ............................ 45 5.2.3. sync word recognition ............................................................................................................................ 46 5.2.4. packet handler ........................................... .................. .................................. ................ ............... ........... 47 5.2.5. control ............................................................................................................................... ......................... 47 5.3. digital io pins mapping.......... ............................................ ....................... ...................... .............................. 47 5.3.1. dio pins mapping in continuous mode ............... ............... .............................. ........................ ............... 48 5.3.2. dio pins mapping in packet mode ............................ ................................ ............... ............. .................. 48 5.4. continuous mode ............................................................................................................................... ............ 49 5.4.1. general description.................................................................................................................... ............... 49 5.4.2. tx processing..................................................................................................................... ....................... 49
page 4 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 5.4.3. rx processing .................. ................................ ................... ..................................... ................................ 50 5.5. packet mode .......................................................................................................................... ........................ 50 5.5.1. general description.................................................................................................................... ............... 50 5.5.2. packet format ....................... ..................................... .................................... ................ ............... ........... 51 5.5.3. tx processing (without aes)............................................................................................. ....................... 53 5.5.4. rx processing (without aes) ............................................................................................ ....................... 54 5.5.5. aes ............................................................................................................................... ............................ 54 5.5.6. handling large packets ................................................................................................. .......................... 56 5.5.7. packet filtering...................................................................................................................... .................... 56 5.5.8. dc-free data mechanisms ........................................ ................................ ................... ................. .......... 58 6. configuration and status registers ...................................................................................................................... 60 6.1. general description ...................................................................................................... ................................ 60 6.2. common configuration registers ................................................................................................................. 63 6.3. transmitter registers ............................................................................................................................... ...... 66 6.4. receiver registers...................................................................................................................... ................... 67 6.5. irq and pin mapping registers......... ............................. .............................. ............ ............. ....................... 69 6.6. packet engine registers .......................................... .............................. .............................. ........................ . 71 6.7. temperature sensor registers ............................. ............................... ............................... ................... ....... 74 6.8. test registers ............................ ......................... ...................................... ................................... ................. 74 7. application information .................................................................................................... ..................................... 75 7.1. crystal resonator specification ............................... ................................. .................................................... 75 7.2. reset of the module ............ ................................ ................ ..................... ..................... .................................76 7.2.1. por............................................................................................................................ .............................. .. 76 7.2.2. manual reset ............................................................................................................................... ............... 76 7.3. reference design ......................................................................................................... ................................ 76 8. packaging information ............................................................................................................................... ........... 77 8.1. package outline drawing................................................................................................... ........................... 77 9. ordering information ............................................................................................................................... ........... ? 78
page 5 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com index of figures page figure 1. block diagram ............................................................................................................................... ................. 8 figure 2. pin diagram ............................................................................................................................... ..................... 9 figure 3. marking diagram ............................................................................................................................... ............. 9 figure 4. tcxo connection ............................................................................................................................... ......... 16 figure 5. transmitter block diagram ........................................................................................................................... 19 figure 6. output power curves ............................................................................................................................... .... 22 figure 7. receiver block diagram ............................................................................................................................... 23 figure 8. agc thresholds settings ............................................................................................................................. 24 figure 9. rssi dynamic curve ............................................................................................................................... ..... 28 figure 10. cordic extraction ............................................................................................................................... ......... 28 figure 11. ook peak demodulator description .......................................................................................................... 29 figure 12. floor threshold optimization ..................................................................................................................... 30 figure 13. bit synchronizer description ...................................................................................................................... 31 figure 14. fei process ............................................................................................................................... ................. 32 figure 15. optimized afc (afclowbetaon=1) ............................................................................................................ 33 figure 16. temperature sensor response ................................................................................................................. 34 figure 17. tx startup, fsk and ook .......................................................................................................................... 36 figure 18. rx startup - no agc, no afc .................................................................................................................... 37 figure 19. rx startup - agc, no afc ......................................................................................................................... 37 figure 20. rx startup - agc and afc ........................................................................................................................ 37 figure 21. listen mode sequence (no wanted signal is received) .............................................................................. 39 figure 22. listen mode sequence (wanted signal is received) ................................................................................... 41 figure 23. auto modes of packet handler ................................................................................................................... 42 figure 24. rfm69w data processing conceptual view ............................................................................................... 43 figure 25. spi timing diagram (single access) .......................................................................................................... 44 figure 26. fifo and shift register (sr) ..................................................................................................................... 45 figure 27. fifolevel irq source behavior .................................................................................................................. 46 figure 28. sync word recognition .............................................................................................................................. 47 figure 29. continuous mode conceptual view ........................................................................................................... 49 figure 30. tx processing in continuous mode ............................................................................................................ 49 figure 31. rx processing in continuous mode ........................................................................................................... 50 figure 32. packet mode conceptual view ................................................................................................................... 51 figure 33. fixed length packet format ...................................................................................................................... 52 figure 34. variable length packet format .................................................................................................................. 52 figure 35. unlimited length packet format ................................................................................................................ 53 figure 36. crc implementation ............................................................................................................................... ... 58 figure 37. manchester encoding/decoding ................................................................................................................. 58 figure 38. data whitening ............................................................................................................................... ............ 59 figure 39. por timing diagram ............................................................................................................................... .. 75 figure 40. manual reset timing diagram ................................................................................................................... 76 figure 41. +13dbm schematic ............................................................................................................................... ..... 76
page 6 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com figure 42. packaging outline drawing .................................................................................................................. 77 index of tables page table 1. rfm69w pinouts ............................................................................................................................... .................. 10 table 2. absolute maximum ratings ............................................................................................................................ 11 table 3. operating range ............................................................................................................................... ............. 11 table 4. power consumption specification .................................................................................................................. 12 table 5. frequency synthesizer specification .............................................................................................................. 12 table 6. receiver specification ............................................................................................................................... ..... 13 table 7. transmitter specification ............................................................................................................................... . 14 table 8. digital specification ............................................................................................................................... ......... 15 table 9. bit rate examples ............................................................................................................................... ........... 20 table 10. power amplifier mode selection truth table ............................................................................................... 21 table 11. high power settings ............................................................................................................................... ...... 22 table 12. lna gain settings ............................................................................................................................... ......... 23 table 13. receiver performance summary .................................................................................................................. 25 table 14. available rxbw settings ............................................................................................................................... 26 table 15. available dcc cutoff frequencies ............................................................................................................... 27 table 16. basic transceiver modes ............................................................................................................................. 35 table 17. range of durations in listen mode .............................................................................................................. 39 table 18. signal acceptance criteria in listen mode ................................................................................................... 40 table 19. end of listen cycle actions .......................................................................................................................... 40 table 20. status of fifo when switching between different modes of the module ...................................................... 46 table 21. dio mapping, continuous mode .................................................................................................................. 48 table 22. dio mapping, packet mode ......................................................................................................................... 48 table 23. registers summary ............................................................................................................................... ....... 60 table 24. common configuration registers ................................................................................................................. 63 table 25. transmitter registers ............................................................................................................................... .... 66 table 26. receiver registers ............................................................................................................................... ........ 67 table 27. irq and pin mapping registers ................................................................................................................... 69 table 28. packet engine registers .............................................................................................................................. 71 table 29. temperature sensor registers ..................................................................................................................... 74 table 30. test registers ............................................................................................................................... ............... 74 table 31. crystal specification ............................................................................................................................... ...... 75
page 7 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com acronyms bom bill of materials lsb least significant bit br bit rate msb most significant bit bw bandwidth nrz non return to zero ccitt comit consultatif international tlphonique et tlgraphique - itu ook on off keying crc cyclic redundancy check pa power amplifier dac digital to analog converter pcb printed circuit board etsi european telecommunications standards insti t ute pll phase-locked loop fcc federal communications commission por power on reset fdev frequency deviation rbw resolution bandwidth fifo first in first out rf radio frequency fir finite impulse response rssi received signal strength indicator fs frequency synthesizer rx receiver fsk frequency shift keying saw surface acoustic wave gui graphical user interface spi serial peripheral interface ic integrated circuit sr shift register id identificator stby standby if intermediate frequency tx transmitter irq interrupt request uc microcontroller itu international telecommunication union vco voltage controlled oscillator lfsr linear feedback shift register xo crystal oscillator lna low noise amplifier xor exclusive or lo local oscillator
page 8 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com this product datasheet contains a detailed description of the rfm69w performance and functionality. 1. general description the rfm69w is a transceiver module ideally suited for today' s high performance ism band rf applications. it is intended for use as high-performance, low-cost fsk and ook rf transceiver for robust frequency agile, half-duplex bi-directional rf links, and where stable and constant rf performance is required over the full operating range of the device down to 1.8v. the rfm69w is intended for applications over a wide fr equency range, including the 315mhz,433 mhz,868 mhz and 915mhz ism bands. coupled with a link budget in excess of 133 db, the advanced system features of the rfm69w include a 66 byte tx/rx fifo, configurable automatic packet handler, listen mode, temperature sensor and configurable dios which greatly enhance system fl exibility whilst at the same time significantly reducing mcu requirements. the rfm69w complies with both etsi and fcc regulatory requirements 1.1. simplified block diagram figure 1. block diagram
page 9 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 1.2. pin and marking diagram the following diagram shows the pin arrangement, top view. figure 2. pin diagram
page 10 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 1.3. pin description table 1 rfm69w pinouts number name type description s 1 reset i/o reset trigger input 2 dio0 i/o digital i/o, software configured 3 dio1 i/o digital i/o, software configured 4 dio2 i/o digital i/o, software configured 5 dio3 i/o digital i/o, software configured 6 dio4 i/o digital i/o, software configured 7 dio5 i/o digital i/o, software configured 8 3.3v - supply voltage 9 gnd - ground 10 ana rf signal output/input. 11 gnd - ground 12 sck i spi clock input 13 miso o spi data output 14 mosi i spi data input 15 nss i spi chip select input 16 nc - connect to gnd
page 11 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 2. electrical characteristics 2.2. absolute maximum ratings stresses above the values listed below may cause permanent device failure. exposure to absolute maximum ratings for extended periods may affect device reliability. table 2 absolute maximum ratings symbol description min max unit vddmr supply voltage -0.5 3.9 v tmr temperature -55 +115 c tj junction temperature - +125 c pmr rf input level - +6 dbm dc_13dbm duty cycle of transmission at +13dbm output - 1 % vswr_13dbm maximum vswr at antenna port - 3:1 - 2.3. operating range table 3 operating range symbol description min max unit vddop supply voltage 1.8 3.6 v to p operational temperature range -40 +85 c clop load capacitance on digital ports - 25 pf ml rf input level - 0 dbm
page 12 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 2.4. module consumption the tables below give the electrical specifications of the tr ansceiver under the following conditions: supply voltage vbat1= vbat2=vdd=3.3 v, temperature = 25 c, pout = +13dbm, 2-leve l fsk modulation without pre-filtering, fda = 5 khz, bit rate = 4.8 kb/s and terminated in a matched 50 ohm impedance, unless otherwise specified. note unless otherwise specified, the performances in the other frequency bands are similar or better. 2.4.1. power consumption table 4 power consumption specification symbol description conditions min typ max unit iddsl supply current in sleep mode - 0.1 1 ua iddidle supply current in idle mode rc oscillator enabled - 1.2 - ua iddst supply current in standby mode crystal oscillator enabled - 1.25 1.5 ma iddfs supply current in synthesizer mode - 9 - ma iddr supply current in receive mode - 16 - ma iddt supply current in transmit mode with appropriate matching, sta- ble across vdd range rfop = +13 dbm, on rfio pin rfop = +10 dbm, on rfio pin rfop = 0 dbm, on rfio pin rfop = -1 dbm, on rfio pin - - - - 45 33 20 16 - - - - ma ma ma ma 2.4.2. frequency synthesis table 5 frequency synthesizer specification symbol description conditions min typ max unit fr synthesizer frequency range 315mhz module 433mhz module 868mhz module 915mhz module 290 424 862 890 340 510 890 1020 mhz mhz mhz mhz fxosc crystal oscillator frequency for all module - 32 - mhz ts_osc crystal oscillator wake-up time - 250 500 us ts_fs frequency synthesizer wake-up time to plllock signal from standby mode - 80 150 us ts_hop frequency synthesizer hop time at most 10 khz away from the target 200 khz step 1 mhz step 5 mhz step 7 mhz step 12 mhz step 20 mhz step 25 mhz step - - - - - - - 20 20 50 50 80 80 80 - - - - - - - us us us us us us us
page 13 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com fstep frequency synthesizer step fstep = fxosc/2 19 - 61.0 - hz frc rc oscillator frequency after calibration - 62.5 - khz brf bit rate, fsk programmable 1.2 - 300 kbps bro bit rate, ook programmable 1.2 - 32.768 kbps fda frequency deviation, fsk programmable fda + brf/2 =< 500 khz 0.6 - 300 khz 2.4.3. receiver all receiver tests are performed with rxbw = 10 khz (single side bandwidth) as programmed in regrxbw , receiving a pn15 sequence with a ber of 0.1% (bit synchronizer is enabl ed), unless otherwise specified. the lna impedance is set to 200 ohms, by setting bit lnazin in reglna to 1. blocking tests are performed with an unmodulated interferer. the wanted signal power for the blocking immunity, acr, iip2, ii p3 and amr tests is set 3 db above the nominal sensitivity level. table 6 receiver specification symbol description conditions min typ max unit fda = 5 khz, br = 1.2 kb/s fda = 5 khz, br = 4.8 kb/s fda = 40 khz, br = 38.4 kb/s - - - -118 -114 -105 - - - dbm dbm dbm rfs_f fsk sensitivity, highest lna gain fda = 5 khz, br = 1.2 kb/s * - -120 - dbm rfs_o ook sensitivity, highest lna gain br = 4.8 kb/s - -112 -109 dbm ccr co-channel rejection -13 -10 - db acr adjacent channel rejection offset = +/- 25 khz offset = +/- 50 khz - 37 42 42 - - db db blocking immunity offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - 66 71 79 - - - db db db bi blocking immunity wanted signal at sensitivity +16db offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - 62 65 73 - - - db db db amr am rejection , am modulated interferer with 100% modulation depth, fm = 1 khz, square offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - 66 71 79 - - - db db db iip2 2nd order input intercept point unwanted tones are 20 mhz above the lo lowest lna gain highest lna gain - - +75 +35 - - dbm dbm
page 14 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com iip3 3rd order input intercept point unwanted tones are 1mhz and 1.995 mhz above the lo lowest lna gain highest lna gain - -23 +13 -18 - - dbm dbm bw_ssb single side channel filter bw programmable 2.6 - 500 khz imr_ook image rejection in ook mode wanted signal level = -106 dbm 27 30 - db ts_re receiver wake-up time, from pll locked state to rxready rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s - - 1.7 96 - - ms us ts_re_agc receiver wake-up time, from pll locked state, agc enabled rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s - 3.0 163 ms us ts_re_agc &afc receiver wake-up time, from pll lock state, agc and afc enabled rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s 4.8 265 ms us ts_fei fei sampling time receiver is ready - 4.t bit - - ts_afc afc response time receiver is ready - 4.t bit - - ts_rssi rssi response time receiver is ready - 2.t bit - - dr_rssi rssi dynamic range agc enabled min max - - -115 0 - - dbm dbm * set sensitivityboost in regtestlna to 0x2d to reduce the noise floor in the receiver 2.4.4. transmitter table 7 transmitter specification symbol description conditions min typ max unit rf_op rf output power in 50 ohms on rfio pin programmable with 1db steps max min - - +13 -18 - - dbm dbm - rf_op rf output power stability from vdd=2.4v to 3.6v - +/-0.3 - db phn transmitter phase noise 50 khz offset from carrier 868 / 915 mhz bands 434 / 315 mhz bands - - -95 -99 - - dbc/ hz acp transmitter adjacent channel power (measured at 25 khz off- set) bt=0.5 . measurement conditions as defined by en 300 220-1 v2.1.1 - - -37 dbm ts_tr transmitter wake up time, to the first rising edge of dclk frequency synthesizer enabled, paramp = 10 us, br = 4.8 kb/s. - 120 - us
page 15 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 2.4.5. digital specification conditions: temp = 25c, vdd = 3.3v, fxos c = 32 mhz, unless ot herwise specified. table 8 digital specification symbol description conditions min typ max unit v ih digital input level high 0.8 - - vdd v il digital input level low - - 0.2 vdd v oh digital output level high imax = 1 ma 0.9 - - vdd v ol digital output level low imax = -1 ma - - 0.1 vdd f sck sck frequency - - 10 mhz t ch sck high time 50 - - ns t cl sck low time 50 - - ns t rise sck rise time - 5 - ns t fall sck fall time - 5 - ns t setup mosi setup time from mosi change to sck rising edge 30 - - ns t hold mosi hold time from sck rising edge to mosi change 60 - - ns t nsetup nss setup time from nss falling edge to sck rising edge 30 - - ns t nhold nss hold time from sck falling e dge to nss rising edge, normal mode 30 - - ns t nhigh nss high time between spi accesses 20 - - ns t_data data hold and setup time 250 - - ns
page 16 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3. module description this section describes in depth the architecture of the rfm69w low-power, highly integrated transceiver. 3.1. power supply strategy the rfm69w employs an advanced power supply scheme, which provides stable operating characteristics over the full temperature and voltage range of operation. this includes the full output power of +13dbm maintained from 1.8 to 3.6v. the rfm69w can be powered from any low-noise voltage source via pins vbat1 and vbat2. decoupling capacitors should be connected, as suggested in the reference design, on vr_pa, vr_dig and vr_ana pins to ensure a correct operation of the built-in voltage regulators. 3.2. frequency synthesis the lo generation on the rfm69w is based on a state-of-the-a rt fractional-n pll. the pll is fully integrated with automatic calibration. 3.2.1. reference oscillator the crystal oscillator is the main timing reference of the rfm 69w. it is used as a reference for the frequency synthesizer and as a clock for the digital processing. the xo startup time, ts_osc, depends on the actual xtal being connected on pins xta and xtb. when using the built- in sequencer, the rfm69w optimizes the startup time and automa tically triggers the pll when the xo signal is stable. to manually control the startup time, the user should either wa it for ts_osc max, or monitor the signal clkout which will only be made available on the output buffer wh en a stable xo oscillation is achieved. an external clock can be used to replace the crystal oscillat or, for instance a tight tolerance tcxo. to do so, bit 4 at address 0x59 should be set to 1, and the external clock has to be provided on xta. xtb should be left open. the peak- peak amplitude of the input signal must never exceed 2.4 v. please consult your tcxo supplier for an appropriate value of decoupling capacitor, c d . xta xtb tcxo 32 mhz nc op vcc vcc gnd c d figure 4. tcxo connection
page 17 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com f = xo s c 3.2.2. clkout output the reference frequency, or a fraction of it, can be provided on dio5 by modifying bits clkout in regdiomapping2 . two typical applications of the clkout output include: ? to provide a clock output for a companion processor, thus saving the cost of an additional oscillator. clkout can be made available in any operation mode except sleep mode and is automatically enabled at power on reset. ? to provide an oscillator refe rence output. measurement of the clkout signal enables simple software trimming of the initial crystal tolerance. note to minimize the current consumption of the rfm69w, please ensure that the clkout signal is disabled when not required. 3.2.3. pll architecture the frequency synthesizer generating the lo frequency for both the receiver and the transmitter is a fractional-n sigma- delta pll. the pll incorporates a third order loop capable of fast auto-calibration, and it has a fast switching-time. the vco and the loop filter are both fully integrated, removing the need for an external tight-tolerance, high-q inductor in the vco tank circuit. 3.2.3.1. vco the vco runs at 2, 4 or 6 times the rf frequency (respectively in the 915, 434 and 315 mhz bands) to reduce any lo leakage in receiver mode, to improve the quadrature precision of the receiver, and to reduce the pulling effects on the vco during transmission. the vco calibration is fully automated. a coarse adjustment is carried out at power on reset, and a fine tuning is performed each time the rfm69w pll is activated. automati c calibration times are fully transparent to the end-user, as their processing time is included in the ts_te and ts_re specifications. 3.2.3.2. pll bandwidth the bandwidth of the rfm69w fractional-n pll is wide enough to allow for: ? high speed fsk modulation, up to 300 kb/s, inside the pll bandwidth ? very fast pll lock times, enabling both short startup and fast hop times required for frequency agile applications 3.2.3.3. carrier frequency and resolution the rfm69w pll embeds a 19-bit sigma-delta modulator and its frequency resolution, constant over the whole frequency range, and is given by: f ste p ---------------- 2 19 the carrier frequency is programmed through regfrf , split across addresses 0x07 to 0x09: f rf = f step ? frf (23,0) note the frf setting is split across 3 bytes. a change in t he center frequency will only be taken into account when the least significant byte frflsb in regfrflsb is written. this allows for more complex modulation schemes such as m- ary fsk, where frequency modulation is achieved by changing the programmed rf frequency.
page 18 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.2.4. lock time pll lock time ts_fs is a function of a number of technical factors, such as synthesized frequency, frequency step, etc. when using the built-in sequencer, the rfm69w optimizes the startup time and automatically starts the receiver or the transmitter when the pll has locked. to manually control the startup time, the user should either wait for ts_fs max given in the specification, or monitor the signal pll lock detect indicator, which is set when the pll has is within its locking range. when performing an afc, which usually corrects very small frequency errors, the pll response time is approximately: = ------------ - in a frequency hopping scheme, the timings ts_hop given in the table of specifications give an order of magnitude for the expected lock times. 3.2.5. lock detect indicator a lock indication signal can be made available on some of t he dio pins, and is toggled high when the pll reaches its locking range. please refer to table 21 and table 22 to map this interrupt to the desired pins. note the lock detect block may indicate an unlock condition (signal toggling low) when the transmitter is fsk modulated with large frequency deviation settings.
page 19 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com = xo s c 3.3. transmitter description the transmitter of rfm69w comprises the frequency synthesizer, modulator and power amplifier blocks. 3.3.1. architecture description lna rfio receiver chain pa0 pa1 local oscillator pa_boost pa2 figure 5. transmitter block diagram 3.3.2. bit rate setting when using the rfm69w in continuous mode, the data stream to be transmitted can be input directly to the modulator via the dio2/data pin in an asynchronous manner, unless gaussian filtering is used, in which case the dclk signal on the dio1/dclk pin is used to synchronize the data stream. see section 3.3.5 for details on the gaussian filter. in packet mode or in continuous mode with gaussian filtering ena bled (refer to section 5.5 for details), the bit rate (br) is controlled by bits bitrate in regbitrate : f br ------------------- bitrate amongst others, the following bit rates are accessible:
page 20 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com table 9 bit rate examples type bitrate (15:8) bitrate (7:0) (g)fsk (g)msk ook actual br (b/s) 0x68 0x2b 1.2 kbps 1.2 kbps 1200.015 0x34 0x15 2.4 kbps 2.4 kbps 2400.060 0x1a 0x0b 4.8 kbps 4.8 kbps 4799.760 0x0d 0x05 9.6 kbps 9.6 kbps 9600.960 0x06 0x83 19.2 kbps 19.2 kbps 19196.16 0x03 0x41 38.4 kbps 38415.36 0x01 0xa1 76.8 kbps 76738.60 classical modem baud rates (multiples of 1.2 kbps) 0x00 0xd0 153.6 kbps 153846.1 0x02 0x2c 57.6 kbps 57553.95 classical modem baud rates (multiples of 0.9 kbps) 0x01 0x16 115.2 kbps 115107.9 0x0a 0x00 12.5 kbps 12.5 kbps 12500.00 0x05 0x00 25 kbps 25 kbps 25000.00 0x02 0x80 50 kbps 50000.00 0x01 0x40 100 kbps 100000.0 0x00 0xd5 150 kbps 150234.7 0x00 0xa0 200 kbps 200000.0 0x00 0x80 250 kbps 250000.0 round bit rates (multiples of 12.5, 25 and 50 kbps) 0x00 0x6b 300 kbps 299065.4 watch xtal frequency 0x03 0xd1 32.768 kbps 32.768 kbps 32753.32 3.3.3. fsk modulation fsk modulation is performed inside the pll bandwidth, by changing the fractional divider ratio in the feedback loop of the pll. the large resolution of the sigma-delta modulator, allows for very narrow frequency deviation. the frequency deviation fdev is given by: note no constraint applies to the modulation index of th e transmitter, but the frequency deviation must exceed 600 hz. 3.3.4. ook modulation ook modulation is applied by switching on and off the power amplifier. digital control and smoothing are available to improve the transient power response of the ook transmitter.
page 21 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.3.5. modulation shaping modulation shaping can be applied in both ook and fsk modulat ion modes, to improve the narrowband response of the transmitter. both shaping features are controlled with paramp bits in regparamp . ? in fsk mode, a gaussian filter with bt = 0.3, 0.5 or 1 is used to filter the modulation stream, at the input of the sigma- delta modulator. if the gaussian filter is enabled when the rfm69w is in continuous mode, dclk signal on the dio1/dclk pin will trigger an interrupt on the uc each time a new bit has to be transmitted. please refer to section 5.4.2 for details. ? when ook modulation is used, the pa bias voltages are ramped up and down smoothly when the pa is turned on and off, to reduce spectral splatter. note the transmitter must be restarted if the paramp setting is changed, in order to recalibrate the built-in filter. 3.3.6. power amplifiers three power amplifier blocks are embedded in the rfm69w. the first one, herein refe rred to as pa0, can generate up to +13 dbm into a 50 ohm load. pa0 shares a common front-end pin rfio with the receiver lna. ? a low power mode, where -2 dbm < pout < 13 dbm, with pa1 enabled all pa settings are controlled by regpalevel , and the truth table of settings is given in table 10. table 10 power amplifier mode selection truth table pa0on pa1on pa2on mode power range pout formula 1 0 0 pa0 output on pin rfio -18 to +13 dbm -18 dbm + outputpower other combinations reserved notes - to ensure correct operation at the highest power levels, please make sure to adjust the over current protection limit accordingly in regocp, not used (+13dbm applications and less), the pin can be left floating.
page 22 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com pout on pa0 [db m ] pout on pa1 [db m ] pout on pa1+pa2 [dbm] p out on p a 1+ p a 2 with 20db m s ettings [db m ] pout [dbm] 3.3.8. output power summary the curves below summarize the possible pa options on the rfm69w: p o ut vs. p r o g ram med p o w er 22 18 14 10 6 2 -2 -6 -10 -14 -18 -22 -18 -14 -10 -6 -2 2 6 10 14 18 pr o g r am m e d po w e r [d bm ] figure 6. output power curves 3.3.9. over current protection an over current protection block is bu ilt-in the module. it helps preventing surge currents required when the transmitter is used at its highest power levels, thus protecting the battery that may power the application. the current clamping value is controlled by ocptrim bits in regocp , and is calculated with the following formula: imax = 45 + 5 ? ocptrim ? ma ? note imax sets a limit on the current drain of the powe r amplifier only, hence the maximum current drain of the rfm69w is equal to imax + i fs
page 23 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com dec imator processing 3.4. receiver description the rfm69w features a digital receiver with the analog to digital conversion process being performed directly following the lna-mixers block. the zero-if receiver is able to handle (g)fsk and (g)msk modulation. ask and ook modulation is, however, demodulated by a low-if architecture. all the f iltering, demodulation, gain control, synchronization and packet handling is performed digitally, which allows a very wide range of bit rates and frequency deviations to be selected. the receiver is also capable of automatic gain calibration in order to improve precision on rssi measurements. 3.4.1. block diagram rx cal ibration reference rfio from pa1 lna single to differential mi x ers ?/ ? modulators channel fil ter dc cancel lation complex fi lter cordic phase outp ut module output rssi fsk demodulator ook demodul ator local os c illator afc by pass ed in fs k agc figure 7. receiver block diagram the following sections give a brief description of each of the receiver blocks. 3.4.2. lna - single to differential buffer the lna uses a common-gate topology, which allows for a flat characteristic over the whole frequency range. it is designed to have an input impedance of 50 ohms or 200 ohms (as selected with bit lnazin in reglna) , and the parasitic capacitance at the lna input port is cancelled with the external rf choke. a single to differential buffer is implemented to improve the second order linearity of the receiver. the lna gain, including the single-to-differential buffer, is programmable over a 48 db dynamic range, and control is either manual or automatic with the embedded agc function. note in the specific case where the lna gain is manually se t by the user, the receiver will not be able to properly handle fsk signals with a modulation index smaller than 2 at an input power greater than the 1db compression point, tabulated in section 3.4.3. table 12 lna gain settings lnagainselect lna gain gain setting 000 any of the below, set by the agc loop - 001 max gain g1 010 max gain - 6 db g2 011 max gain - 12 db g3 100 max gain - 24 db g4 101 max gain - 36 db g5 110 max gain - 48 db g6 111 reserved -
page 24 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.3. automatic gain control by default ( lnagainselect = 000 ), the lna gain is controlled by a digital agc l oop in order to obtain the optimal sensitivity/ linearity trade-off. regardless of the data transfer mode (packet or continuous), the following series of events takes place when the receiver is enabled: ? the receiver stays in wait mode, until rssivalue exceeds rssithreshold for two consecutive samples. its power consumption is the receiver power consumption. ? when this condition is satisfied, the receiver automati cally selects the most suitable lna gain, optimizing the sensitivity/ linearity trade-off. ? the programmed lna gain, read-accessible with lnacurrentgain in reglna , is carried on for the whole duration of the packet, until one of the following conditions is fulfilled: ? packet mode: if autorxrestarton = 0, the lna gain will remain the same for the reception of the following packet. if autorxrestarton = 1 , after the controller has emptied the fifo the receiver will re-enter the wait mode described above, after a delay of interpacketrxdelay , allowing for the distant transmitter to ramp down, hence avoiding a false rssi detection. in both cases (autorxrestarton=0 or auto rxrestarton=1), the receiver can also re-enter the wait mode by setting restartrx bit to 1. the user can decide to do so, to manually launch a new agc procedure. ? continuous mode: upon reception of valid data, the user can decide to either leave the receiver enabled with the same lna gain, or to restart the procedure, by setting restartrx bit to 1, resuming the wait mode of the receiver, described above. notes - the agc procedure must be performed while receiving preamble in fsk mode - in ook mode, the agc will give better results if performed while receiving a constant ?1? sequence the following figure illustrates the agc behavior: towa rds -125 db m 16db 7db 11db 9db 11db pin [dbm] g1 g2 g3 g4 g5 g6 higher sensitivity lower linearity lower noise figure lower sensitivity higher linearity higher noise figure figure 8. agc thresholds settings the following table summarizes the performance (typical figures) of the complete receiver:
page 25 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com table 13 receiver performance summary receiver performance (typ) input power pin gain setting p -1db [dbm] nf [db] iip3 [dbm] iip2 [dbm] pin < agcthresh1 g1 -37 7 -18 +35 agcthresh1 < pin < agcthresh2 g2 -31 13 -15 +40 agcthresh2 < pin < agcthresh3 g3 -26 18 -8 +48 agcthresh3 < pin < agcthresh4 g4 -14 27 -1 +62 agcthresh4 < pin < agcthresh5 g5 >-6 36 +13 +68 agcthresh5 < pin g6 >0 44 +20 +75 3.4.3.1. rssithreshold setting for correct operation of the agc, rssithreshold in regrssithresh must be set to the sensitivity of the receiver. the receiver will remain in wait mode until rssithreshold is exceeded. note when afc is enabled and performed automatically at the receiver startup, the channel filter used by the receiver during the afc and the agc is rxbwafc instead of the standar d rxbw setting. this may impact the sensitivity of the receiver, and the setting of rssithreshold accordingly 3.4.3.2. agc reference the agc reference level is automatically computed in the rfm69w, according to: agc reference [dbm] = -174 + nf + demodsnr +10.log(2* rxbw ) + fadingmargin [dbm] with: ? nf = 7db : lna?s noise figure at maximum gain ? demodsnr = 8 db : snr needed by the demodulator ? rxbw : single sideband channel filter bandwidth ? fadingmargin = 5 db : fading margin 3.4.4. continuous-time dagc in addition to the automatic gain control described in section 3.4.3, the rfm69w is capable of continuously adjusting its gain in the digital domain, after the analog to digital conversion has occured. this feature, named dagc, is fully transparent to the end user. the digital gain adjustment is repeated every 2 bits, and has the following benefits: ? fully transparent to the end user ? improves the fading margin of the receiver during the rece ption of a packet, even if the gain of the lna is frozen ? improves the receiver robustness in fast fading signal conditions, by quickly adjusting the receiver gain (every 2 bits) ? works in continuous, packet, and unlimited length packet modes the dagc is enabled by setting regtestdagc to 0x20 for low modulation index systems (i.e. when afclowbetaon =1, refer to section 3.4.16), and 0x30 for other systems. it is recommended to always enable the dagc.
page 26 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.5. quadrature mixer - adcs - decimators the mixer is inserted between output of the rf buffer stage and the input of the analog to digital converter (adc) of the receiver section. this block is designed to translate the spectrum of the input rf signal to base-band, and offer both high iip2 and iip3 responses. in the lower bands of operation (290 to 510 mhz), the multi- phase mixing architecture with weighted phases improves the rejection of the lo harmonics in receiv er mode, hence increasing the receiver immunity to out-of-band interferers. the i and q digitalization is made by two 5 th order continuous-time sigma-delta analog to digital converters (adc). their gain is not constant over temperature, but the whole receiver is calibrated before reception, so that this inaccuracy has no impact on the rssi precision. the adc output is one bit per channel. it needs to be decimated and filtered afterwards. this adc can also be used for temperature measurement, please refer to section 3.4.17 for more details. the decimators decrease the sample rate of the incoming signal in order to optimize the area and power consumption of the following receiver blocks. 3.4.6. channel filter the role of the channel filter is to filter out the nois e and interferers outside of the channel. channel filtering on the rfm69w is implemented with a 16-tap finite impulse response (fir) filter, providing an outstanding adjacent channel rejection performance, even for narrowband applications. note to respect oversampling rules in the decimation chain of the receiver, the bit rate cannot be set at a higher value than 2 times the single-side receiver bandwidth (bitrate < 2 x rxbw) the single-side channel filter bandwidth rxbw is controlled by the parameters rxbwmant and rxbwexp in regrxbw: ? when fsk modulation is enabled: ? when ook modulation is enabled: rxbw = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rxbwmant ? 2 rxbwe x p + 2 rxbw = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rxbwmant ? 2 rxbwe x p + 3 the following channel filter bandwidths are ac cessible (oscillator is mandated at 32 mhz): table 14 available rxbw settings rxbw (khz) rxbwmant (binary/value) rxbwexp (decimal) fsk modulationtype=00 ook modulationtype=01 10b / 24 7 2.6 1.3 01b / 20 7 3.1 1.6 00b / 16 7 3.9 2.0 10b / 24 6 5.2 2.6 01b / 20 6 6.3 3.1 00b / 16 6 7.8 3.9 10b / 24 5 10.4 5.2 01b / 20 5 12.5 6.3 00b / 16 5 15.6 7.8 10b / 24 4 20.8 10.4
page 27 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 01b / 20 4 25.0 12.5 00b / 16 4 31.3 15.6 10b / 24 3 41.7 20.8 01b / 20 3 50.0 25.0 00b / 16 3 62.5 31.3 10b / 24 2 83.3 41.7 01b / 20 2 100.0 50.0 00b / 16 2 125.0 62.5 10b / 24 1 166.7 83.3 01b / 20 1 200.0 100.0 00b / 16 1 250.0 125.0 10b / 24 0 333.3 166.7 01b / 20 0 400.0 200.0 00b / 16 0 500.0 250.0 3.4.7. dc cancellation dc cancellation is required in zero-if architecture transceivers to remove any dc offset generated through self-reception. it is built-in the rfm69w and its adjustable cutoff frequency fc is controlled in regrxbw : table 15 available dcc cutoff frequencies dccfreq in regrxbw fc in % of rxbw 000 16 001 8 010 (default) 4 011 2 100 1 101 0.5 110 0.25 111 0.125 the default value of dccfreq cutoff frequency is typically 4% of the rxbw (channel filter bw). the cutoff frequency of the dcc can however be increased to sl ightly improve the sensitivity, under wider m odulation conditions. it is advised to adjust the dcc setting while monitoring the receiver sensitivity. 3.4.8. complex filter - ook in ook mode the rfm69w is modified to a low-if architecture . the if frequency is automatically set to half the single side bandwidth of the channel filter (f if = 0.5 x rxbw ). the local oscillator is automatically offset by the if in the ook receiver. a complex filter is implemented on the module to attenuate the resulting image frequency by typically 30 db. note this filter is automatically bypassed when receiving fsk signals (modulationtype = 00 in regdatamodul). 3.4.9. rssi the rssi block evaluates the amount of energy available within the receiver ch annel bandwidth. its resolution is 0.5 db, and it has a wide dynamic range to accommodate both small and large signal levels that may be present. its acquisition time is very short, taking only 2 bit periods. the rssi sampling must occur during the reception of preamble in fsk, and constant ?1? reception in ook.
page 28 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com rssivalue [dbm] note - rssivalue can only be read when it exceeds rssithreshold - the receiver is capable of automatic gain calibration, in order to improve the precision of its rssi measurements. this function injects a known rf signal at the lna input, and calibrates the receiver gain accordingly. this calibration is automatically performed during the pll start-up, making it a transparent process to the end-user - rssi accuracy depends on all components located between the antenna port and pin rfio, and is therefore limited to a few db. board-level calibration is advised to further improve accuracy 0.0 rssi chart - with agc -20.0 -40.0 -60.0 -80.0 -100.0 -120.0 -120 -110 -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 pin [dbm] figure 9. rssi dynamic curve 3.4.10. cordic the cordic task is to extract the phase and the amplitude of t he modulation vector (i+j.q). this information, still in the digital domain is used: ? phase output: used by the fsk demodulator and the afc blocks. ? amplitude output: used by the rssi block, for fsk dem odulation, agc and automatic gain calibration purposes. real- t ime magnitude q(t) real-time phase i(t) figure 10. cordic extraction
page 29 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.11. fsk demodulator the fsk demodulator of the rfm69w is designed to demodu late fsk, gfsk, msk and gmsk modulated signals. it is most efficient when the modulation index of the signal is greater than 0.5 and below 10: 0.5 ? the output of the fsk demodulator can be fed to the bit synchronizer (described in section 3.4.13), to provide the companion processor with a synchronous data stream in continuous mode. 3.4.12. ook demodulator the ook demodulator performs a comparison of the rssi output and a threshold value. three different threshold modes are available, configured through bits ookthreshtype in regookpeak . the recommended mode of operation is the "peak" threshold mode, illustrated in figure 11: rssi [dbm] ??peak -6db?? threshold ??floor?? threshold defined by ookfixedthresh noise floor of receiver time zoom decay in db as defined in ookpeakthreshstep fixed 6db difference period as defined in ookpeakthreshdec figure 11. ook peak demodulator description in peak threshold mode the comparison threshold level is the peak value of the rssi, reduced by 6db. in the absence of an input signal, or during the reception of a logical "0", the acquired peak value is decremented by one ookpeakthreshstep every ookpeakthreshdec period. when the rssi output is null for a long time (for instance afte r a long string of "0" received, or if no transmitter is present ), the peak threshold level will continue falling until it reaches the "floor threshold", programmed in ookfixedthresh . the default settings of the ook demodulator lead to the performance stated in the electrical specification. however, in applications in which sudden signal drops are awaited during a reception, the three parameters should be optimized accordingly.
page 30 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.12.1. optimizing the floor threshold ookfixedthresh determines the sensitivity of the ook receiver, as it sets the comparison threshold for weak input signals (i.e. those close to the noise floor). significant sensitiv ity improvements can be generated if configured correctly. note that the noise floor of the receiver at the demodulator input depends on: ? the noise figure of the receiver. ? the gain of the receive chain from antenna to base band. ? the matching - including saw filter if any. ? the bandwidth of the channel filters. it is therefore important to note that the setting of ookfixedthresh will be application depend ant. the following procedure is recommended to optimize ookfixedthresh . set rfm69w in ook rx mode adjust bit rate, channel filter bw default ookfixedthresh setting no input signal continuous mode monitor dio2/data pin increment ookfixedthresh glitch activity on data ? optimization complete figure 12. floor threshold optimization the new floor threshold value found during this test should be used for ook reception with those receiver settings. 3.4.12.2. optimizing ook demodulator for fast fading signals a sudden drop in signal strength can cause the bit error rate to increase. for applications where the expected signal drop can be estimated, the followin g ook demodulator parameters ookpeakthreshstep and ookpeakthreshdec can be optimized as described below for a given number of threshold decrements per bit. refer to regookpeak to access those settings. 3.4.12.3. alternative ook demodulator threshold modes in addition to the peak ook threshold mode, the user can al ternatively select two other types of threshold detectors: ? fixed threshold: the value is selected through ookfixedthresh ? average threshold: data supplied by the rssi block is averaged, and this operation mode should only be used with dc-free encoded data.
page 31 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.13. bit synchronizer the bit synchronizer is a block that prov ides a clean and synchronized digital out put, free of glitches. its output is made available on pin dio1/dclk in continuous mode and can be disabled through register settings. however, for optimum receiver performance its use when runnin g continuous mode is strongly advised. the bit synchronizer is automatically activated in packet mode. its bit rate is controlled by bitratemsb and bitratelsb in regbitrate. raw demodulator output (fsk or ook) bitsync output to pin data and dclk in continuous mode data dclk figure 13. bit synchronizer description to ensure correct operation of the bit synchronizer , the following conditions have to be satisfied: ? a preamble (0x55 or 0xaa) of 12 bits is required for synchronization (from the rxready interrupt) ? the subsequent payload bit stream must have at least one transition form '0' to '1' or '1' to '0 every 16 bits during data transmission ? the bit rate matching between the transmitter and the receiver must be better than 6.5 %. notes - if the bit rates of transmitter and receiver are known to be the same, the rfm69w will be able to receive an infinite unbalanced sequence (all ?0s? or all ?1s?) with no restriction. - if there is a difference in bit rate between tx and rx, the amount of adjacent bits at the same level that the bitsync can withstand can be estimated as follows: - this implies approximately 6 consecutive unbalanced bytes when the bit rate precision is 1%, which is easily achievable (crystal tolerance is in the range of 50 to 100 ppm). 3.4.14. frequency error indicator this function provides information about the frequency error of the local oscillator (lo) compared with the carrier frequency of a modulated signal at the input of the receiver. when the fei block is launched, the frequency error is measured and the signed result is loaded in feivalue in regfei , in 2?s complement format. the time required for an fei evaluation is 4 times the bit period.
page 32 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com sx1239 to ensure a proper behavior of the fei: ? the operation must be done during the reception of preamble the frequency error, in hz, can be calculated with the following formula: rfm69w in rx mode preamble-modulated input s ignal signal level > sensitivity set feistart = 1 feidone no = 1 yes read feivalue figure 14. fei process 3.4.15. automatic frequency correction the afc is based on the fei block, and therefore the same input signal and receiver setting conditions apply. when the afc procedure is done, afcvalue is directly subtracted to the register that defines the frequency of operation of the module, f rf . the afc can be launched: ? each time the receiver is enabled, if afcautoon = 1 ? upon user request, by setting bit afcstart in regafcfei , if afcautoon = 0
page 33 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com when the afc is automatically triggered ( afcautoon = 1), the user has the option to: ? clear the former afc correction value, if afcautoclearon = 1 ? start the afc evaluation from the previously corrected frequen cy. this may be useful in systems in which the lo keeps on drifting in the ?same direction?. ageing compensation is a good example. the rfm69w offers an alternate receiver bandwidth setting during the afc phase, to accommodate large lo drifts. if the user considers that the received signal may be out of the receiver bandwidth, a higher channel filter bandwidth can be programmed in regafcbw , at the expense of the receiver noise fl oor, which will impact upon sensitivity. 3.4.16. optimized setup for low modulation index systems ? for wide band systems, where afc is usually not required (x tal inaccuracies do not typically impact the sensitivity), it is recommended to offset the lo frequency of the receiver to avoid desensitization. this can be simply done by modifying frf in regfrflsb . a good rule of thumb is to offset the receiv er?s lo by 10% of the expected transmitter frequency deviation. ? for narrow band systems, it is recommended to perform afc. the rfm69w has a dedicated afc, enabled when afclowbetaon in regafcctrl is set to 1. a frequency offset, programmable through lowbetaafcoffset in regtestafc , is added and is calculated as follows: offset = lowbetaafcoffset x 488 hz the user should ensure that the programmed offset exceeds the dc canceller?s cutoff frequency, set through dccfreqafc in regafcbw. rx tx rx & tx feivalue standard afc afclowbetaon = 0 afcvalue f f rx tx tx rx feivalue optimized afc afclowbetaon = 1 afcvalue lowbetaafcoffset f f before afc after afc figure 15. optimized afc (afclowbetaon=1) as shown on figure 15, a standard afc sequence uses the result of the fei to correct the lo frequency and align both local oscillators. when the optimized afc is enabled ( afclowbetaon=1 ), the receiver?s lo is corrected by ? feivalue + lowbetaafcoffset ?. when the optimized afc routine is enabled, the receiver star tup time can be computed as follows (refer to section 4.2.3): ts_re_agc&afc (optimized afc) = tana + 4.tcf + 4.tdcc + 3.trssi + 2.tafc + 2.tpllafc
page 34 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 3.4.17. temperature sensor when temperature is measured, the receiver adc is used to digitize the sensor response. most receiver blocks are disabled, and temperature measurement can only be triggered in standby or frequency synthesizer modes. the response of the temperature sensor is -1c / lsb. a cmos temperature sensor is not accurate by nature, therefore it should be calibrated at ambient temperature for precise temperature readings. tempvalue -1 c/lsb tempvalue(t) tempvalue(t)-1 returns 150d (typ.) needs calibration -40 c t t+1 ambient +85 c figure 16. temperature sensor response it takes less than 100 microseconds for the rfm69w to evaluate the temperature (from setting tempmeasstart to 1 to tempmeasrunning reset). 3.4.18. timeout function the rfm69w includes a timeout function, which allows it to automatically shut-down the receiver after a receive sequence and therefore save energy. ? timeout interrupt is generated timeoutrxstart x 16x tbit after switching to rx mode if rssithreshold flag does not raise within this time frame ? timeout interrupt is generated timeoutrssithresh x 16 x tbit after rssithreshold flag has been raised. this timeout interrupt can be used to warn the companion processor to shut down the receiver and return to a lower power mode.
page 35 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 4. operating modes 4.1. basic modes the circuit can be set in 5 different basic modes which are described in table 16. by default, when switching from a mode to another one, the sub-blocks are woken up according to a pre-defined and optimized sequence. alternatively, these operating modes can be selected directly by disabling the automatic sequencer ( sequenceroff in regopmode = 1 ). table 16 basic transceiver modes listenon in regopmode mode in regopmode selected mode enabled blocks 0 0 0 0 sleep mode none 0 0 0 1 stand-by mode top regulator and crystal oscillator 0 0 1 0 fs mode frequency synthesizer 0 0 1 1 transmit mode frequency synthesizer and transmitter 0 1 0 0 receive mode frequency synthesizer and receiver 1 x listen mode see listen mode, section 4.3 4.2. automatic sequencer and wake-up times by default, when switching from one operating mode to another, the circuit takes care of the sequence of events in such a way that the transition timing is optimized. for example, w hen switching from sleep mode to transmit mode, the rfm69w goes first to standby mode (xo started), then to frequency synthesizer mode, and finally, when the pll has locked, to transmit mode. entering transmit mode is also made according to a predefined sequence starting with the wake-up of the pa regulator before applying a ramp-up on the pa and generating the dclk clock. ? the crystal oscillator wake-up time, ts_osc, is directly rela ted to the time for the crystal oscillator to reach its steady state. it depends notably on t he crystal characteristics. ? the frequency synthesizer wake-up time, ts_fs, is direct ly related to the time needed by the pll to reach its steady state. the signal pll_lock, provided on an external pin, gives an indication of the lock status. it goes high when the pll reaches its locking range. four specific cases can be highlighted: ? transmitter wake up time from sleep mode = ts_osc + ts_fs + ts_tr ? receiver wake up time from sleep mode = ts_osc + ts_fs + ts_re ? receiver wake up time from sleep mode, agc enabled = ts_osc + ts_fs + ts_re_agc ? receiver wake up time from sleep mode, agc and afc enabled = ts_osc + ts_fs + ts_re_agc&afc these timings are detailed in sections 4.2.1 and 4.2.3. in applications where the target average power consumption, or the target startup time, do not require setting the rfm69w in the lowest power modes (sleep or standby), the respective timings ts_osc and ts_fs in the former equations can be omitted.
page 36 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 4.2.1. transmitter startup time the transmitter wake-up time, ts_tr, is given by the sequence controlled by the digital part. it is a pure digital delay which depends on the bit rate and the ramp-up time. in fsk mode, this time can be derived from the following equation. , where paramp is the ramp-up time programmed in regparamp and tbit is the bit time. in ook mode, this equation can be simplified to the following: tx startup request (sequencer or user) ts_tr xo started and pll is locked analog group delay 0.5 x tbit 1.25 x paramp (only in fsk mode) transmission of packet 5 us modeready txready figure 17. tx startup, fsk and ook 4.2.2. tx start procedure as described in the former section, modeready and txready interrupts warn the uc that the transmitter is ready to transmit data ? in continuous mode , the preamble bits preceding the payload can be applied on the dio2/data pin immediately after any of these interrupts have fired. the dclk signal, activated on pin dio1/dclk can also be used to start toggling the data pin, as described on figure 30. ? in packet mode , the rfm69w will automatically modulate the rf signal with preamble bytes as soon as txready or modeready happen. the actual packet transmission (starting with the number of preambles specified in preamblesize ) will start when the txstartcondition is fulfilled. 4.2.3. receiver startup time it is highly recommended to use the built-in sequencer of the rfm69w, to optimize the delays when setting the module in receive mode. it guarantees the shortest startup times, hence the lowest possible energy usage, for battery operated systems. the startup times of the receiver can be calculated from the following:
page 37 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com rx startup request (sequencer or user) ts_re xo started and pll is locked analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling rssi sampling reception of packet tana tcf tdcc trssi trssi modeready rxready received packet preamble may start figure 18. rx startup - no agc, no afc rx startup request (sequencer or user) ts_re_agc the lna gain is adjusted by the agc, according to the rssi result xo started and pll is locked analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling rssi sampling channel filter?s group delay dc cutoff?s group delay rssi sampling reception of packet tana tcf tdcc trssi trssi tcf tdcc trssi modeready rxready received packet preamble may start figure 19. rx startup - agc, no afc rx startup request (sequencer or user) ts_re_agc&afc the lna gain is adjusted by the agc, according to the rssi result carrier frequency is adjusted by the afc xo started and pll is locked analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling rssi sampling channel filter?s group delay dc cutoff?s group delay rssi sampling afc pll lock channel filter?s group delay dc cutoff?s group delay reception of packet tana tcf tdcc trssi trssi tcf tdcc trssi tafc tpllafc tcf tdcc modeready rxready received packet preamble may start figure 20. rx startup - agc and afc the different timings shown above are as follows: ? group delay of the analog front end: tana = 20 us ? channel filter?s group delay in fsk mode: tcf = 21 / (4.rxbw) ? channel filter?s group delay in ook mode: tcf = 34 / (4.rxbw) ? dc cutoff?s group delay: tdcc = max(8 , 2^(round(log2(8.rxbw.tbit)+1)) / (4.rxbw) ? pll lock time after afc adjustment: tpllafc = 5 / pllbw (pllbw = 300 khz) ? afc sample time: tafc = 4 x tbit (also denoted ts_afc in the general specification) ? rssi sample time: trssi = 2 x int(4.rxbw.tbit)/(4.rxbw) (aka ts_rssi) note the above timings represent maximum settling times, and shorter settling times may be observed in real cases
page 38 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 4.2.4. rx start procedure as described in the former sections, the rxready interrupt warns the uc that the receiver is ready. ? in continuous mode with bit synchronizer , the receiver will start locking its bi t synchronizer on a minimum or 12 bits of received preamble (see section 3.4.13 for details), before the reception of correct data, or sync word (if enabled) can occur. ? in continuous mode without bit synchronizer , valid data will be available on dio2/data right after the rxready interrupt. ? in packet mode , the receiver will start locking its bit synchronizer on a minimum or 12 bits of received preamble (see section 3.4.13 for details), before the reception of correct data, or sync word (if enabled) can occur. 4.2.5. optimized frequency hopping sequences in a frequency hopping-like application, it is required to turn off the transmitter when hopping from one channel to another, to avoid spectral splatter and obtain the best spectral purity. ? transmitter hop from ch a to ch b: it is advised to step through the rx mode: (0) rfm69w is in tx mode in ch a (1) program the rfm69w in rx mode (2) change the carrier frequency in the regfrf registers (3) turn the transceiver back to tx mode (4) respect the tx start procedure, described in section 4.2.2 ? receiver hop from ch a to ch b: (0) rfm69w is in rx mode in ch a (1) change the carrier frequency in the regfrf registers (2) program the rfm69w in fs mode (3) turn the transceiver back to rx mode (4) respect the rx start procedure, described in section 4.2.4 note all sequences described above are assuming that the sequencer is turned on (sequenceroff=0 in regopmode).
page 39 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 4.3. listen mode the circuit can be set to listen mode, by setting listenon in regopmode to 1 while in standby mode. in this mode, rfm69w spends most of the time in idle mode, during which onl y the rc oscillator runs. periodically the receiver is woken up and listens for an rf signal. if a wanted signal is detected, the receiver is kept on and the data is demodulated. otherwise, if a wanted signal hasn't been detected after a pre- defined period of time, the receiver is disabled until the next time period. this periodical rx wake-up requirement is very common in low power applications. on rfm69w it is handled locally by the listen mode block without using uc resources or energy. the simplified timing diagram of this procedure is illustrated in figure 21. t listenidle rx idle rx time t listenrx t listenrx figure 21. listen mode sequence (no wanted signal is received) 4.3.1. timings the duration of the idle phase is given by t listenidle . the time during which the receiver is on and waits for a signal is given by t listenrx . t listenrx includes the wake-up time of the receiver, described in section 4.2.3. this duration can be programmed in the configuration regi sters via the serial interface. both time periods t listenrx and t listenidle (denoted t listenx in the following text) are fixed by two parameters from the configuration register and are calculated as follows: t listenx = listencoefx ? listen re solx where listenresolx is the rx or idle resolution and is independently programmable on three values (64us, 4.1ms or 262ms), whereas listencoefx is an integer between 1 and 255. all parameters are located in reglisten registers. the timing ranges are tabulated in table 17 below. table 17 range of durations in listen mode listenresolx min duration ( listencoef = 1 ) max duration ( listencoef = 255 ) 01 64 us 16 ms 10 4.1 ms 1.04 s 11 0.26 s 67 s
page 40 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet notes - the accuracy of the typical timings given in table 17 will depend in the rc oscillator calibration - rc oscillator calibration is required, and must be performed at power up. see section 4.3.5 for details 4.3.2. criteria the criteria taken for detecting a wanted signal and hence deciding to maintain the receiver on is defined by listencriteria in reglisten1. table 18 signal acceptance criteria in listen mode listencriteria input signal power >= rssithreshold syncaddressmatch 0 required not required 1 required required 4.3.3. end of cycle actions the action taken after detection of a packet, is defined by listenend in reglisten3 , as described in the table below. table 19 end of listen cycle actions listenend description 00 module stays in rx mode. listen mode stops and must be disabled. 01 module stays in rx mode until payloadready or timeout interrupt occurs. it then goes to the mode defined by mode . listen mode stops and must be disabled. 10 module stays in rx mode until payloadready or timeout interrupt occurs. listen mode then resumes in idle state. fifo content is lost at next rx wakeup.
page 41 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com idle rx idle rx advanced communications & sensing datasheet upon detection of a valid packet, the sequencing is altered, as shown below: payloadready listencriteria passed listenend = 00 listen mode idle rx listenend = 01 listenend = 10 listen mode listen mode idle rx mode figure 22. listen mode sequence (wanted signal is received) 4.3.4. stopping listen mode to abort listen mode operation, the following procedure must be respected: ? program regopmode with listenon =0, listenabort =1, and the desired setting for the mode bits (sleep, stdby, fs, rx or tx mode) in a single spi access ? program regopmode with listenon =0, listenabort =0, and the desired setting for the mode bits (sleep, stdby, fs, rx or tx mode) in a second spi access 4.3.5. rc timer accuracy all timings of the listen mode rely on the accuracy of the inter nal low-power rc oscillator. th is oscillator is automatically calibrated at the device power-up, and it is a user-transparent process. for applications enduring large temperature variations, and for which the power supply is never removed, rc calibration can be performed upon user request. rccalstart in regosc1 can be used to trigger this calibration, and the flag rccaldone will be set automatically when the calibration is over.
page 42 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 4.4. automodes automatic modes of packet handler can be enabled by configuring the related parameters in regautomodes . the intermediate mode of the module is called intermediatemode and the enter and exit conditions to/from this intermediate mode can be configured through the parameters entercondition & exitcondition . the enter and exit conditions cannot be used independently of each other i.e. both should be enabled at the same time. the initial and the final state is the one configured in mode in regopmode . the initial & final states can be different by configuring the modes register while the module is in intermed iate mode. the pictorial description of the auto modes is shown below. intermediate state defined by intermediatemode entercondition exitcondition initial state defined by m ode in regopmode final state defined by m ode in regopmode figure 23. auto modes of packet handler some typical examples of automodes usage are described below: ? automatic transmission (autotx) : mode = sleep, intermediatemode = tx, entercondition = fifolevel , exitcondition = packetsent ? automatic reception (autorx) : mode = rx, intermediatemode = sleep, entercondition = crcok , exitcondition = falling edge of fifonotempty ? automatic reception of acknowledge (autorxack): mode = tx, intermediatemode = rx, entercondition = packetsent , exitcondition = crcok ? ...
page 43 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 5. data processing 5.1. overview 5.1.1. block diagram figure below illustrates the rfm69w data processing circuit. its role is to in terface the data to/from the modulator/ demodulator and the uc access points (spi and dio pins). it also controls all the configuration registers. the circuit contains several control blocks whic h are described in the following paragraphs. tx/rx control dio0 dio1 dio2 dio3 dio4 dio5 data rx sync recog. tx packet handler fifo (+sr) spi nss sck mosi miso potential datapaths (data operation mode dependant) figure 24. rfm69w data processing conceptual view the rfm69w implements several data operation modes, each with their own data path through the data processing section. depending on the data operation mode selected, some control blocks are active whilst others remain disabled. 5.1.2. data operation modes the rfm69w has two different data operation modes selectable by the user: ? continuous mode: each bit transmitted or received is accessed in re al time at the dio2/data pin. this mode may be used if adequate external signal processing is available. ? packet mode (recommended): user only provides/retrieves payload bytes to/from the fifo. the packet is automatically built with preamble, sync word, and optional aes, crc, and dc-free encoding schemes the reverse operation is performed in reception. the uc processing overhead is hence significantly reduced compared to continuous mode. depending on the optional features acti vated (crc, aes, etc) the maximum payload length is limited to fifo size, 255 bytes or unlimited. each of these data operation modes is described fully in the following sections.
page 44 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 5.2. control block description 5.2.1. spi interface the spi interface gives access to the configuration register via a synchronous full-duplex protocol corresponding to cpol = 0 and cpha = 0 in motorola/freescale nomenclature. only the slave side is implemented. three access modes to the registers are provided: ? single access: an address byte followed by a data byte is se nt for a write access whereas an address byte is sent and a read byte is received for the read access. the nss pin goes low at the begin of the frame and goes high after the data byte. ? burst access: the address byte is followe d by several data bytes. the address is automatically incremented internally between each data byte. this mode is available for both read and write accesses. the nss pin goes low at the beginning of the frame and stay low between each byte. it goes high only after the last byte transfer. ? fifo access: if the address byte corresponds to the address of the fifo, then succeeding data byte will address the fifo. the address is not automatically incremented but is memorized and does not need to be sent between each data byte. the nss pin goes low at the beginning of the frame and stay low between each byte. it goes high only after the last byte transfer. figure below shows a typical spi single access to a register. figure 25. spi timing diagram (single access) mosi is generated by the master on the falling edge of sck and is sampled by the slave (i.e. this spi interface) on the rising edge of sck. miso is generated by the slave on the falling edge of sck. a transfer always starts by the nss pin going low. miso is high impedance when nss is high. the first byte is the address byte. it is made of: ? wnr bit, which is 1 for write access and 0 for read access ? 7 bits of address, msb first the second byte is a data byte, either sent on mosi by the master in case of a write access, or received by the master on miso in case of read access. the data byte is transmitted msb first. proceeding bytes may be sent on mosi (for write access) or received on miso (for read access) without rising nss and re-sending the address. in fifo mode, if the address was the fifo address then the bytes will be written / read at the fifo address. in burst mode, if the address was not the fifo address, then it is automatically incremented at each new byte received.
page 45 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com the frame ends when nss goes high. the next frame must start with an address byte. the single access mode is actually a special case of fifo / burst mode with only 1 data byte transferred. during the write access, the byte transferred from the slave to the master on the miso line is the value of the written register before the write operation. 5.2.2. fifo 5.2.2.1. overview and shift register (sr) in packet mode of operation, both data to be transmitted and that has been received are stored in a configurable fifo (first in first out) device. it is accessed via the spi interface and provides several interrupts for transfer management. the fifo is 1 byte wide hence it only performs byte (paralle l) operations, whereas the demodulator functions serially. a shift register is therefore employed to interface the two devi ces. in transmit mode it takes bytes from the fifo and outputs them serially (msb first) at the programmed bit rate to the modula tor. similarly, in rx the shift register gets bit by bit data from the demodulator and writes them byte by byte to the fifo. this is illustrated in figure below. byte1 byte0 fifo data tx/rx 1 8 sr (8bits) msb lsb figure 26. fifo and shift register (sr) note when switching to sleep mode, the fifo can only be us ed once the modeready flag is set (quasi immediate from all modes except from tx) 5.2.2.2. size the fifo size is fixed to 66 bytes. 5.2.2.3. interrupt sources and flags ? fifonotempty: fifonotempty interrupt source is low when by te 0, i.e. whole fifo, is empty. otherwise it is high. note that when retrieving data from the fifo, fifonotempty is updated on nss falling edge, i.e. when fifonotempty is updated to low state the currently st arted read operation must be completed. in other words, fifonotempty state must be checked after each read operation for a decision on the next one (fifonotempty = 1: more byte(s) to read; fifonotempty = 0: no more byte to read). ? fifofull: fifofull interrupt source is high when the last fifo byte, i.e. the whole fifo, is full. otherwise it is low. ? fifooverrunflag: fifooverrunflag is set when a new byte is written by the user (in tx or standby modes) or the sr (inrx mode) while the fifo is already full. data is lost and the flag should be cleared by writing a 1, note that the fifo will also be cleared. ? packetsent: packetsent interrupt source go es high when the sr's last bit has been sent. ? fifolevel: threshold can be programmed by fifothreshold in regfifothresh. its behavior is illustrated in figure below.
page 46 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com fifolevel 1 0 b b+1 # of bytes in fifo figure 27. fifolevel irq source behavior note - fifolevel interrupt is updated only after a read or write operation on the fifo. thus the interrupt cannot be dynamically updated by only changing the fifothreshold parameter - fifolevel interrupt is valid as long as fifofull does no t occur. an empty fifo will restore its normal operation 5.2.2.4. fifo clearing table below summarizes the status of the fi fo when switching between different modes table 20 status of fifo when switching between different modes of the module from to fifo status comments stdby sleep not cleared sleep stdby not cleared stdby/sleep tx not cleared to allow the user to write the fifo in stdby/sleep before tx stdby/sleep rx cleared rx tx cleared rx stdby/sleep not cleared to allow the user to read fifo in stdby/sleep mode after rx tx any cleared 5.2.3. sync word recognition 5.2.3.1. overview sync word recognition (also called pattern recognition) is activated by setting syncon in regsyncconfig . the bit synchronizer must also be activated in continuo us mode (automatically done in packet mode) . the block behaves like a shift register; it continuously comp ares the incoming data with its internally programmed sync word and sets syncaddressmatch when a match is detected. this is illustrated in figure 28 below.
page 47 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com rx data (nrz) bit n-x = sync_value[x] bit n-1 = sync_value[1] bit n = sync_value[0] dclk syncaddressmatch figure 28. sync word recognition during the comparison of the demodulated data, the first bit received is compared with bit 7 (msb) of regsyncvalue1 and the last bit received is compared with bit 0 (lsb) of the la st byte whose address is determ ined by the length of the sync word. when the programmed sync word is detected the user can assume that this incoming packet is for the node and can be processed accordingly. syncaddressmatch is cleared when leaving rx or fifo is emptied. 5.2.3.2. configuration ? size: sync word size can be set from 1 to 8 bytes (i.e. 8 to 64 bits) via syncsize in regsyncconfig. in packet mode this field is also used for sync word generation in tx mode. ? error tolerance: the number of errors tolerated in the sy nc word recognition can be set from 0 to 7 bits to via synctol. ? value: the sync word value is configured in syncvalue(63:0 ). in packet mode this field is also used for sync word generation in tx mode. note syncvalue choices containing 0x00 bytes are not allowed 5.2.4. packet handler the packet handler is the block used in packet mode. its functionality is fully described in section 5.5. 5.2.5. control the control block configures and controls the full module 's behavior according to the settings programmed in the configuration registers. 5.3. digital io pins mapping six general purpose io pins are available on the rfm69w, and their configuration in continuous or packet mode is controlled through regdiomapping1 and regdiomapping2.
page 48 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.3.1. dio pins mapping in continuous mode table 21 dio mapping, continuous mode mode diox mapping dio5 dio4 dio3 dio2 dio1 dio0 sleep 00 - - - - - - 01 - - - - - - 10 - - au t omode - - - 11 modeready - - - - modeready st dby 00 clko ut - - - - - 01 - - - - - - 10 - - au t omode - - - 11 modeready - - - - modeready fs 00 clko ut - - - - plllock 01 - - - - - - 10 - - au t omode - - - 11 modeready p lllock - - p lllock modeready rx 00 clko ut t imeou t rssi d at a dclk s y nc a dd r ess 01 rssi rxready rxready da t a rxready t imeou t 10 - s yncaddress a u to mode da ta - rssi 11 modeready p lllock t imeo ut da t a syncaddress modeready tx 00 clko ut t xready t xready data dclk plllock 01 clko ut t xready t xready data t xready t xready 10 - - au t omode data - - 11 modeready p lllock t xready data plllock modeready 5.3.2. dio pins mapping in packet mode table 22 dio mapping, packet mode mode diox mapping dio5 dio4 dio3 dio2 dio1 dio0 sleep 00 - - fi f o f ull fi f onot e mp t y fi f olevel - 01 - - - - fif o f ull - 10 - - - - f i f ono te mpty - 11 modeready - - aut omode - - st dby 00 clkou t - fif o f ull fif onotem pt y fif olevel - 01 - - - - fif o f ull - 10 - - - - f i f ono te mpty - 11 modeready - - aut omode - - fs 00 clkou t - fi f o f ull fi f onotem pt y fi f olevel - 01 - - - - fif o f ull - 10 - - - - f i f ono te mpty - 11 modeready p lllock p lllock aut omode p lllock p lllock rx 00 clko ut t imeout f i f ofull f i f ono te mp t y f i f olevel c r cok 01 da ta rssi rssi data fif ofull p ayloadready 10 - rxready s yncaddress - f i f ono te mpty sync a ddress 11 modeready p lllock p lllock aut omode t imeo ut rssi tx 00 clkou t modeready fif o f ull fif onotem pt y fif olevel p acke ts en t 01 da ta t xready t xready data fif ofull t xready 10 - - - - f i f ono te mpty - 11 modeready p lllock p lllock aut omode p lllock p lllock note received data is only shown on the data signal between rxready and payloadready?s rising edges
page 49 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.4. continuous mode 5.4.1. general description as illustrated in figure 29, in continuous mode the nrz data to (f rom) the (de)modulator is dire ctly accessed by the uc on the bidirectional dio2/data pin. the fi fo and packet handler are thus inactive. tx/rx control dio0 dio1/dclk dio2/data dio3 dio4 dio5 data rx sync recog. spi nss sck mosi miso figure 29. continuous mode conceptual view 5.4.2. tx processing in tx mode, a synchronous data clock for an external uc is provided on dio1/dclk pin. clock timing with respect to the data is illustrated in figure 30. data is internally sampled on the rising edge of dclk so the uc can change logic state anytime outside the grayed out setup/hold zone. t_data t_data data (nrz) dclk figure 30. tx processing in continuous mode note the use of dclk is required when the mo dulation shaping is enabled (see section 3.3.5).
page 50 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.4.3. rx processing if the bit synchronizer is disabled, the raw demodulator output is made directly available on data pin and no dclk signal is provided. conversely, if the bit synchronizer is enabled, synchronous cleaned data and clock are made available respectively on dio2/data and dio1/dclk pins. data is sampled on t he rising edge of dclk and updated on the falling edge as illustrated below. data (nrz) dclk figure 31. rx processing in continuous mode note in continuous mode it is always recommended to enable the bit synchronizer to clean the data signal even if the dclk signal is not used by the uc (bit synchro nizer is automatically enabled in packet mode). 5.5. packet mode 5.5.1. general description in packet mode the nrz data to (from) the (de)modulator is not directly accessed by the uc but stored in the fifo and accessed via the spi interface. in addition, the rfm69w packet handler performs several packet oriented tasks such as preamble and sync word generation, crc calculation/check, whitening/dewhitening of da ta, manchester encoding/decodi ng, address filtering, aes encryption/decryption, etc. th is simplifies software and reduces uc over head by performing these repetitive tasks within the rf module itself. another important feature is ability to fill and empty the fifo in sleep/stdby mode, ensuring optimum power consumption and adding more flexibility for the software.
page 51 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com dvanced communications & sensing datasheet control dio0 dio1 dio2 dio3 dio4 dio5 data rx tx sync recog. packet handler fifo (+sr) spi nss sck mosi miso figure 32. packet mode conceptual view note the bit synchronizer is automatically enabled in packet mode. 5.5.2. packet format 5.5.2.1. fixed length packet format fixed length packet format is selected when bit packetformat is set to 0 and payloadlength is set to any value greater than 0. in applications where the packet length is fixed in advance, this mode of operation may be of interest to minimize rf overhead (no length byte field is required). all nodes, whet her tx only, rx only, or tx/rx should be programmed with the same packet length value. the length of the payload is limited to 255 bytes if aes is not enabled else the message is limited to 64 bytes (i.e. max 65 bytes payload if address byte is enabled). the length programmed in payloadlength relates only to the payload which includes the message and the optional address byte. in this mode, the payload must contain at least one byte, i.e. address or message byte. an illustration of a fixed length packet is shown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? optional address byte (node id) ? message data ? optional 2-bytes crc checksum
page 52 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet dc free data encoding crc checksum calcula t ion aes enc / dec preamble 0 to 65535 bytes sync word 0 to 8 bytes address byte message up to 255 by t es crc 2-bytes payload (min 1 byte) fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload figure 33. fixed length packet format 5.5.2.2. variable length packet format variable length packet format is selected when bit packetformat is set to 1. this mode is useful in applications where the length of the pack et is not known in advance and can vary over time. it is then necessary for the transmitter to send the length information togeth er with each packet in order for the receiver to operate properly. in this mode the length of the payload, in dicated by the length byte, is given by t he first byte of the fifo and is limited to 255 bytes if aes is not enabled else the message is limited to 64 bytes (i.e. max 66 bytes payload if address byte is enabled). note that the length byte itself is not included in it s calculation. in this mode, the payload must contain at least 2 bytes, i.e. length + address or message byte. an illustration of a variable length packet is shown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? length byte ? optional address byte (node id) ? message data ? optional 2-bytes crc checksum dc free data encoding crc checksum calculation aes enc/dec preamble 0 to 65535 bytes sync word 0 to 8 bytes length byte address byte message up to 255 bytes crc 2-bytes payload (min 2 bytes) fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload figure 34. variable length packet format
page 53 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.5.2.3. unlimited length packet format unlimited length packet format is selected when bit packetformat is set to 0 and payloadlength is set to 0. the user can then transmit and receive packet of arbitrary length and payloadlength register is not used in tx/rx modes for counting the length of the bytes transmitted/received. this mode is a replacement for the legacy buffered mode in rf63/rf64 transceivers. in tx the data is transmitted depending on the txstartcondition bit. on the rx side the data processing features like address filtering, manchester encoding and data whitening are not available if the sync pattern length is set to zero ( syncon = 0 ). the filling of the fifo in this case can be controlled by the bit fifofillcondition . the crc detection in rx is also not supported in this mode of the packet handler, however crc generation in tx is operational. the interrupts like crcok & payloadready are not available either. an unlimited length packet shown in is made up of the following fields: ? preamble (1010...). ? sync word (network id). ? optional address byte (node id). ? message data ? optional 2-bytes crc checksum (tx only) dc free data encoding pr eamb l e 0 to 65535 byt es sync w ord 0 to 8 by te s a ddress byt e message unlimited leng t h p ay l oad fields added by the packet handler in tx and processed and removed in rx message part of the payload optional user provided fields which are part of the payload figure 35. unlimited length packet forma t 5.5.3. tx processing (without aes) in tx mode the packet handler dynamically builds the packet by performing the following operations on the payload available in the fifo: ? add a programmable number of preamble bytes ? add a programmable sync word ? optionally calculating crc over complete payload field ( optional length byte + optional address byte + message) andappending the 2 bytes checksum. ? optional dc-free encoding of the data (manchester or whitening) only the payload (including optional address and length fiel ds) is required to be provided by the user in the fifo.
page 54 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet the transmission of packet data is initiated by the packet handler only if the module is in tx mode and the transmission condition defined by txstartcondition is fulfilled. if transmission condition is not fulfilled then the packet handler transmits a preamble sequence until the condition is met. this happens only if the preamble length /= 0, otherwise it transmits a zero or one until the condition is met to transmit the packet data. the transmission condition itself is defined as: ? if txstartcondition = 1, the packet handler waits until the first byte is written into the fifo, then it starts sending the preamble followed by the sync word and user payload ? if txstartcondition = 0, the packet handler waits until the number of by tes written in the fifo is equal to the number defined in regfifothresh + 1 ? if the condition for transmission was already fulfilled i.e. t he fifo was filled in sleep/stdby then the transmission of packet starts immediately on enabling tx 5.5.4. rx processing (without aes) in rx mode the packet handler extracts the user payload to the fifo by performing the following operations: ? receiving the preamble and stripping it off ? detecting the sync word and stripping it off ? optional dc-free decoding of data ? optionally checking the address byte ? optionally checking crc and reflecting the result on crcok. only the payload (including optional address and length fields) is made available in the fifo. when the rx mode is enabled the demodulator receives the preamble followed by the detection of sync word. if fixed length packet format is enabled then the number of bytes received as the payload is given by the payloadlength parameter. in variable length mode the first byte received after the sync word is interpreted as the length of the received packet. the internal length counter is initialized to this received length. the payloadlength register is set to a value which is greater than the maximum expected length of the received packet. if th e received length is greater than the maximum length stored in payloadlength register the packet is discarded otherwise the complete packet is received. if the address check is enabled then the second byte received in case of variable length and first byte in case of fixed length is the address byte. if th e address matches to the one in the nodeaddress field, reception of the data continues otherwise it's stopped. the crc check is performed if crcon = 1 and the result is available in crcok indicating that the crc was successful. an interrupt ( payloadready ) is also generated on dio0 as soon as the payload is available in the fifo. the payload available in the fifo can also be read in sleep/standby mode. if the crc fails the payloadready interrupt is not generated and the fifo is cleared. this function can be overridden by setting crcautoclearoff = 1, forcing the availability of payloadready interrupt and the payload in the fifo even if the crc fails. 5.5.5. aes aes is the symmetric-key block cipher that provides the cryptographic capabilities to the transc eiver. the system proposed can work with 128-bit long fixed keys. the fixed key is stored in a 16-byte write only user configuration register, which retains its value in sleep mode.
page 55 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com as shown in figure 33 and figure 34 above the message part of the packet can be encrypted and decrypted with the cipher 128- cipher key stored in the configuration registers. 5.5.5.1. tx processing 1. user enters the data to be transmitted in fifo in stdby/sleep mode and gives the transmit command. 2. on tx command the packet handler state machine take s over the control and if encryption is enabled then the message inside the fifo is read in blocks of 16 bytes (padded with 0s if needed), encrypted and stored back to fifo. all this processing is done in tx mode before enabling the pa cket handling state machine. only the message part of the packet is encrypted and preamble, sync word, length byte, address byte and crc are not encrypted. 3. once the encryption is done the packet handling state machine is enabled to transmit the data. 5.5.5.2. rx processing 1. the data received is stored in the fifo, the address, crc interrupts are generated as usual because these parameters were not encrypted. 2. once the complete packet has been received. the data is read from the fifo, decrypted and written back to fifo. the payloadready interrupt is issued once the decrypted data is ready in the fifo for reading via the spi interface. the aes encryption/decryption cannot be used on the fly i.e. while transmitting and rece iving data. thus when aes encryption/decryption is enabled, the fifo acts as a simple bu ffer. this buffer is filled before initiating any transmission. the data in the buffer is then encrypted before the transmissi on can begin. on the receive side the decryption is initiated only once the complete packet has been received in the buffer. the encryption/decryption process takes approximately 7.0 us pe r 16-byte block. thus for a maximum of 4 blocks (i.e. 64 bytes) it can take up to 28 us for completing the cryptographic operations. the receive side sees the aes decryption time as a sequential delay before the payloadready interrupt is available. the tx side sees the aes encryption time as a sequential delay in the startup of the tx chain, thus the startup time of the tx will increase according to the length of data. in fixed length mode the message part of the payload that can be encrypted/decrypted can be 64 bytes long. if the address filtering is enabled, the length of the payload should be at max 65 bytes in this case. in variable length mode the max message size that can be encrypted/decrypted is also 64 bytes when address filtering is disabled, else it is 48 bytes. thus, including length byte, the length of the payload is max 65 or 50 bytes (the latter when address filtering is enabled). if the address filtering is expected then addressfiltering must be enabled on the transmitter side as well to prevent address byte to be encrypted. crc check being performed on encrypted data, crcok interrupt will occur "decryption time" before payloadready interrupt.
page 56 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.5.6. handling large packets when payload length exceeds fifo size (66 bytes) whether in fixed, variable or unlimited length packet format, in addition to packetsent in tx and payloadready or crcok in rx, the fifo interrupts/flags can be used as described below: ? for tx: fifo can be prefilled in sleep/standby but must be refilled "on-the-fly" during tx with the rest of the payload. 1) prefill fifo (in sleep/standby firs t or directly in tx mode) until fifothreshold or fifofull is set 2) in tx, wait for fifothreshold or fifonotempty to be cleared (i.e. fifo is nearly empty) 3) write bytes into the fifo until fifothreshold or fifofull is set. 4) continue to step 2 until the entire message has been written to the fifo ( packetsent will fire when the last bit of the packet has been sent). ? for rx: fifo must be unfilled "on-the-fly" du ring rx to prevent fifo overrun. 1) start reading bytes from the fifo when fifonotempty or fifothreshold becomes set. 2) suspend reading from the fifo if fifonotempty clears before all bytes of the message have been read 3) continue to step 1 until payloadready or crcok fires 4) read all remaining bytes from the fifo either in rx or sleep/standby mode note aes encryption is not feasible on lar ge packets, since all payload bytes need to be in the fifo at the same time to perform encryption 5.5.7. packet filtering rfm69w's packet handler offers several mechanisms for packet filtering, ensuring that only useful packets are made available to the uc, reducing significantly system power consumption and software complexity. 5.5.7.1. sync word based sync word filtering/recognition is used fo r identifying the start of the payload and also for network identification. as previously described, the sync word recognition block is configured (size, error tolerance, value) in regsyncvalue registers. this information is used, both for appe nding sync word in tx, and filtering packets in rx. every received packet which does not start with this locally configured sync word is automatically discarded and no interrupt is generated. when the sync word is detected, payload reception automatically starts and syncaddressmatch is asserted. note sync word values containing 0x00 byte(s) are forbidden
page 57 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.5.7.2. address based address filtering can be enabled via the addressfiltering bits. it adds another level of filtering, above sync word (i.e. sync must match first), typically useful in a multi-node networks where a network id is shared between all nodes (sync word) and each node has its own id (address). two address based filtering options are available: ? addressfiltering = 01 : received address field is compared with internal register nodeaddress . if they match then the packet is accepted and processed, otherwise it is discarded. ? addressfiltering = 10: received address field is compared with internal registers nodeaddress and broadcastaddress.if either is a match, the received packet is accepted and processed, otherwise it is discarded. this additional check with a constant is useful for implementing broadcast in a multi-node networks please note that the received address byte, as part of the payl oad, is not stripped off the packet and is made available in the fifo. in addition, nodeaddress and addressfiltering only apply to rx. on tx side, if address filtering is expected, the address byte should simply be put into th e fifo like any other byte of the payload. as address filtering requires a sync word matc h, both features share the same interrupt flag syncaddressmatch . 5.5.7.3. length based in variable length packet mode, payloadlength must be programmed with the maximum payload length permitted. if received length byte is smaller than this maximum then the packet is accepted a nd processed, otherwise it is discarded. please note that the received length byte, as part of the payload, is not stripped off the packet and is made available in the fifo. to disable this function the user should set the value of the payloadlength to 255. 5.5.7.4. crc based the crc check is enabled by setting bit crcon in regpacketconfig1 . it is used for checking the integrity of the message. ? on tx side a two byte crc checksum is calculated on the payload part of the packet and appended to the end of the message ? on rx side the checksum is calculated on the receiv ed payload and compared with the two checksum bytes received.the result of the com parison is stored in bit crcok. by default, if the crc check fails then the fifo is automatica lly cleared and no interrupt is generated. this filtering functio n can be disabled via crcautoclearoff bit and in this case, even if crc fails, the fifo is not cleared and only payloadready interrupt goes high. please note that in both cases, the two crc checksum byte s are stripped off by the packet handler and only the payload is made available in the fifo. the crc is based on the ccitt polynomial as shown below. this implementation also detects errors due to leading and trailing zeros.
page 58 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet data input crc polynomial =x 16 + x 12 + x 5 + 1 x 15 x 14 x 13 x 12 x 11 * * * x 5 x 4 * * * x 0 figure 36. crc implementation 5.5.8. dc-free data mechanisms the payload to be transmitted may contain long sequences of 1' s and 0's, which introduces a dc bias in the transmitted signal. the radio signal thus produced has a non uniform power distribution over the occupied channel bandwidth. it also introduces data dependencies in the normal operation of the demodu lator. thus it is useful if the transmitted data is random and dc free. for such purposes, two techniques are made available in the pa cket handler: manchester encoding and data whitening. note only one of the two methods should be enabled at a time. 5.5.8.1. manchester encoding manchester encoding/decoding is enabled if dcfree = 01 and can only be used in packet mode. the nrz data is converted to manchester code by coding '1' as "10" and '0' as "01". in this case, the maximum chip rate is the maximum bit rate gi ven in the specifications section and the actual bit rate is half the chip rate. manchester encoding and decoding is on ly applied to the payload and crc checksum while preamble and sync word are kept nrz. however, the chip rate from preamble to crc is the same and defined by bitrate in regbitrate (chip rate = bit rate nrz = 2 x bit rate manchester). manchester encoding/decoding is thus made transparent for t he user, who still provides/retrieves nrz data to/from the fifo 1/br ...sync 1/br payload... rf chips @ br ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits t manchester off ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits manchester on ... 1 1 1 0 1 0 0 1 0 0 1 1 ... figure 37. manchester encoding/decoding
page 59 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 5.5.8.2. data whitening another technique called whitening or scrambling is widely us ed for randomizing the user data before radio transmission. the data is whitened using a random sequence on the tx side and de-whitened on the rx side using the same sequence. comparing to manchester technique it has the advantage of k eeping nrz data rate i.e. actual bit rate is not halved. the whitening/de-whitening process is enabled if dcfree = 10 . a 9-bit lfsr is used to generate a random sequence. the payload and 2-byte crc checksum is then xored with this ra ndom sequence as shown be low. the data is de-whitened on the receiver side by xoring with the same random sequence. payload whitening/de-whitening is thus made transparent for t he user, who still provides/retrieves nrz data to/from the fifo. lfs r p o ly nom ia l =x 9 + x 5 + 1 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 x 0 tra n s m it d a ta w h iten ed da ta figure 38. data whitening
page 60 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 6. configuration and status registers 6.1. general description table 23 registers summary address register name reset (built-in) default (recom mended) description 0x00 regfifo 0x00 fifo read/write access 0x01 regopmode 0x04 operating modes of the transceiver 0x02 regdatamodul 0x00 data operation mode and modulation settings 0x03 regbitratemsb 0x1a bit rate setting, mo st significant bits 0x04 regbitratelsb 0x0b bit rate setting, least significant bits 0x05 regfdevmsb 0x00 frequency deviation setting, most significant bits 0x06 regfdevlsb 0x52 frequency deviation setting, least significant bits 0x07 regfrfmsb 0xe4 rf carrier frequency, most significant bits 0x08 regfrfmid 0xc0 rf carrier frequency, intermediate bits 0x09 regfrflsb 0x00 rf carrier frequency, least significant bits 0x0a regosc1 0x41 rc oscillators settings 0x0b regafcctrl 0x00 afc control in low modulation index situations 0x0c reserved0c 0x02 - 0x0d reglisten1 0x92 listen mode settings 0x0e reglisten2 0xf5 listen mode idle duration 0x0f reglisten3 0x20 listen mode rx duration 0x10 regversion 0x24 0x11 regpalevel 0x9f pa selection and output power control 0x12 regparamp 0x09 control of the pa ramp time in fsk mode 0x13 regocp 0x1a over current protection control 0x14 reserved14 0x40 - 0x15 reserved15 0xb0 - 0x16 reserved16 0x7b - 0x17 reserved17 0x9b - 0x18 reglna 0x08 0x88 lna settings 0x19 regrxbw 0x86 0x55 channel filter bw control
page 61 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet address register name reset (built-in) default (recom mended) description 0x1a regafcbw 0x8a 0x8b channel filter bw control during the afc routine 0x1b regookpeak 0x40 ook demodulator selection and control in peak mode 0x1c regookavg 0x80 average threshold control of the ook demodulator 0x1d regookfix 0x06 fixed threshold control of the ook demodulator 0x1e regafcfei 0x10 afc and fei control and status 0x1f regafcmsb 0x00 msb of the frequency correction of the afc 0x20 regafclsb 0x00 lsb of the frequency correction of the afc 0x21 regfeimsb 0x00 msb of the calculated frequency error 0x22 regfeilsb 0x00 lsb of the calculated frequency error 0x23 regrssiconfig 0x02 rssi-related settings 0x24 regrssivalue 0xff rssi value in dbm 0x25 regdiomapping1 0x00 mapping of pins dio0 to dio3 0x26 regdiomapping2 0x05 0x07 mapping of pins dio4 and dio5, clkout frequency 0x27 regirqflags1 0x80 status register: pll lock state, timeout, rssi > threshold... 0x28 regirqflags2 0x00 status register: fifo handling flags... 0x29 regrssithresh 0xff 0xe4 rssi threshold control 0x2a regrxtimeout1 0x00 timeout duration between rx request and rssi detection 0x2b regrxtimeout2 0x00 timeout duration between rssi detection and payloadready 0x2c regpreamblemsb 0x00 preamble length, msb 0x2d regpreamblelsb 0x03 preamble length, lsb 0x2e regsyncconfig 0x98 sync word recognition control 0x2f-0x36 regsyncvalue1-8 0x00 0x01 sync word bytes, 1 through 8 0x37 regpacketconfig1 0x10 packet mode settings 0x38 regpayloadlength 0x40 payload length setting 0x39 regnodeadrs 0x00 node address 0x3a regbroadcastadrs 0x00 broadcast address 0x3b regautomodes 0x00 auto modes settings 0x3c regfifothresh 0x0f 0x8f fifo threshold, tx start condition 0x3d regpacketconfig2 0x02 packet mode settings
page 62 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com address register name reset (built-in) default (recom mended) description 0x3e-0x4d regaeskey1-16 0x00 16 bytes of the cypher key 0x4e regtemp1 0x01 temperature sensor control 0x4f regtemp2 0x00 temperature readout 0x58 regtestlna 0x1b sensitivity boost 0x5a regtestpa1 0x55 high power pa settings 0x5c regtestpa2 0x70 high power pa settings 0x6f regtestdagc 0x00 0x30 fading margin improvement 0x71 regtestafc 0x00 afc offset for low modulation index afc 0x50 + regtest - internal test registers note - reset values are automatically refreshed in the module at power on reset - default values are recommended register values, optimizing the device operation - registers for which the default value differs from the reset value are denoted by a * in the tables of section 6
page 63 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com 6.2. common confi guration registers table 24 common configuration registers name (address) bits variable name mode default value description regfifo (0x00) 7-0 fifo rw 0x00 fifo data input/output 7 sequenceroff rw 0 controls the automatic sequencer (see section 4.2 ): 0 operating mode as selected with mode bits in regopmode is automatically reached with the sequence r 1 mode is forced by the user 6 listenon rw 0 enables listen mode, should be enabled whilst in standby mode: 0 off (see section 4.3) 1 on 5 listenabort w 0 aborts listen mode when set together with listenon=0 see section 4.3.4 for details always reads 0. 4-2 mode rw 001 transceiver?s operating modes: 000 sleep mode (sleep) 001 standby mode (stdby) 010 frequency synthesizer mode (fs) 011 transmitter mode (tx) 100 receiver mode (rx) others reserved reads the value corresponding to the current chip mode regopmode (0x01) 1-0 - r 00 unused 7 - r 0 unused 6-5 datamode rw 00 data processing mode: 00 packet mode 01 reserved 10 continuous mode with bit synchronizer 11 continuous mode without bit synchronizer 4-3 modulationtype rw 00 modulation scheme: 00 fsk 01 ook 10 - 11 reserved 2 - r 0 unused regdatamodul (0x02) 1-0 modulationshaping rw 00 data shaping: in fsk: 00 no shaping 01 gaussian filter, bt = 1.0 10 gaussian filter, bt = 0.5 11 gaussian filter, bt = 0.3 in ook: 00 no shaping 01 filtering with f cutoff = br 10 filtering with f cutoff = 2*br 11 reserved regbitratemsb (0x03) 7-0 bitrate(15:8) rw 0x1a msb of bit rate (chip rate when manchester encoding is enabled)
page 64 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet regbitratelsb (0x04) 7-0 bitrate(7:0) rw 0x0b lsb of bit rate (chip rate if manchester encoding is enabled) bitrate = -------- f ---- x ---- o ----- s --- c ---------- bitrate (15,0) default value: 4.8 kb/s 7-6 - r 00 unused regfdevmsb (0x05) 5-0 fdev(13:8) rw 000000 msb of the frequency deviation regfdevlsb (0x06) 7-0 fdev(7:0) rw 0x52 lsb of the frequency deviation fdev = fstep ? fdev (15,0) default value: 5 khz regfrfmsb (0x07) 7-0 frf(23:16) rw 0xe4 msb of the rf carrier frequency regfrfmid (0x08) 7-0 frf(15:8) rw 0xc0 middle byte of the rf carrier frequency regfrflsb (0x09) 7-0 frf(7:0) rw 0x00 lsb of the rf carrier frequency frf = fstep ? frf ? 23;0 ? default value: frf = 915 mhz (32 mhz xo) 7 rccalstart w 0 triggers the calibration of the rc oscillator when set. always reads 0. rc calibration must be triggered in standby mode. 6 rccaldone r 1 0 rc calibration in progress 1 rc calibration is over regosc1 (0x0a) 5-0 - r 000001 unused 7-6 - r 00 unused 5 afclowbetaon rw 0 improved afc routine for signals with modulation index lower than 2. refer to section 3.4.16 for details 0 standard afc routine 1 improved afc routine regafcctrl (0x0b) 4-0 - r 00000 unused reserved0c (0x0c) 7-0 - r 0x02 unused
page 65 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet reglisten1 (0x0d) reglisten2 (0x0e) reglisten3 (0x0f) regversion (0x10) 7-6 listenresolidle rw 10 resolution of listen mode idle time (calibrated rc osc): 00 reserved 01 64 us 10 4.1 ms 11 262 ms 5-4 listenresolrx rw 01 resolution of listen mode rx time (calibrated rc osc): 00 reserved 01 64 us 10 4.1 ms 11 262 ms 3 listencriteria rw 0 criteria for packet acceptance in listen mode: 0 signal strength is above rssithreshold 1 signal strength is above rssithreshold and syncaddress matched 2-1 listenend rw 01 action taken after acceptance of a packet in listen mode: 00 chip stays in rx mode. li sten mode stops and must be disabled (see section 4.3). 01 chip stays in rx mode until payloadready or timeout interrupt occurs. it then goes to the mode defined by mode . listen mode stops and must be disabled (see section 4.3). 10 chip stays in rx mode until payloadready or timeout interrupt occurs. listen mode then resumes in idle state. fifo content is lost at next rx wakeup. 11 reserved 0 - r 0 unused 7-0 listencoefidle rw 0xf5 duration of the idle phase in listen mode. t listenidle = listencoefidle ? listen re solidle 7-0 listencoefrx rw 0x20 duration of the rx phase in listen mode (startup time included, see section 4.2.3) t listenrx = listencoefrx ? listen re solrx 7-0 version r 0x24 version code of the chip. bits 7-4 give the full revision number; bits 3-0 give the metal mask revision number.
page 66 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 6.3. transmitter registers table 25 transmitter registers name (address) bits variable name mode default value description 7 pa0on * rw 1 enables pa0, connected to rfio and lna 6 pa1on * rw 0 enables pa1, on pa_boost pin 5 pa2on * rw 0 enables pa2, on pa_boost pin regpalevel (0x11) 4-0 outputpower rw 11111 output power setting, with 1 db steps pout = -18 + outputpower [dbm] , with pa0 7-4 - r 0000 unused regparamp (0x12) 3-0 paramp rw 1001 rise/fall time of ramp up/down in fsk 0000 3.4 ms 0001 2 ms 0010 1 ms 0011 500 us 0100 250 us 0101 125 us 0110 100 us 0111 62 us 1000 50 us 1001 40 us 1010 31 us 1011 25 us 1100 20 us 1101 15 us 1110 12 us 1111 10 us 7-5 - r 000 unused 4 ocpon rw 1 enables overload current protection (ocp) for the pa: 0 ocp disabled 1 ocp enabled regocp (0x13) 3-0 ocptrim rw 1010 trimming of ocp current: imax = 45 + 5 ? ocptrim ? ma ? 95 ma ocp by default note *power amplifier truth table is available in table 10 ** only the16 upper values of outputpower are accessible
page 67 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 6.4. receiver registers table 26 receiver registers name (address) bits variable name mode default value description reserved14 (0x14) 7-0 - r 0x40 unused reserved15 (0x15) 7-0 - r 0xb0 unused reserved16 (0x16) 7-0 - r 0x7b unused reserved17 (0x17) 7-0 - r 0x9b unused 7 lnazin rw 1 * lna?s input impedance 0 50 ohms 1 200 ohms 6 - r 0 unused 5-3 lnacurrentgain r 001 current lna gain, set either manually, or by the agc reglna (0x18) 2-0 lnagainselect rw 000 lna gain setting: 000 gain set by the internal agc loop 001 g1 = highest gain 010 g2 = highest gain ? 6 db 011 g3 = highest gain ? 12 db 100 g4 = highest gain ? 24 db 101 g5 = highest gain ? 36 db 110 g6 = highest gain ? 48 db 111 reserved 7-5 dccfreq rw 010 * cut-off frequency of the dc offset canceller (dcc): ----- ----------------- ~4% of the rxbw by default 4-3 rxbwmant rw 10 * channel filter bandwidth control: 00 rxbwmant = 16 10 rxbwmant = 24 01 rxbwmant = 20 11 reserved regrxbw (0x19) 2-0 rxbwexp rw 101 * channel filter bandwidth control: fsk mode: rxbw = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rxbwmant ? 2 rxbwexp + 2 ook mode: rxbw = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rxbwmant ? 2 rxbwexp + 3 see table 14 for tabulated values 7-5 dccfreqafc rw 100 dccfreq parameter used during the afc 4-3 rxbwmantafc rw 01 rxbwmant parameter used during the afc regafcbw (0x1a) 2-0 rxbwexpafc rw 011 * rxbwexp parameter used during the afc
page 68 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7-6 ookthreshtype rw 01 selects type of threshold in the ook data slicer: 00 fixed 10 average 01 peak 11 reserved 5-3 ookpeaktheshstep rw 000 size of each decrement of the rssi threshold in the ook demodulator: 000 0.5 db 001 1.0 db 010 1.5 db 011 2.0 db 100 3.0 db 101 4.0 db 110 5.0 db 111 6.0 db regookpeak (0x1b) 2-0 ookpeakthreshdec rw 000 period of decrement of the rssi threshold in the ook demodulator: 000 once per chip 001 once every 2 chips 010 once every 4 chips 011 once every 8 chips 100 twice in each chip 101 4 times in each chip 110 8 times in each chip 111 16 times in each chi p 7-6 ookaveragethreshfilt rw 10 filter coefficients in average mode of the ook demodulator: 00 f c chip rate / 32. 01 f c chip rate / 8. 10 f c chip rate / 4. 11 f c chip rate / 2. regookavg (0x1c) 5-0 - r 000000 unused regookfix (0x1d) 7-0 ookfixedthresh rw 0110 (6db) fixed threshold value (in db) in the ook demodulator. used when ookthrestype = 00 7 - r 0 unused 6 feidone r 0 0 fei is on-going 1 fei finished 5 feistart w 0 triggers a fei measurement when set. always reads 0. 4 afcdone r 1 0 afc is on-going 1 afc has finished 3 afcautoclearon rw 0 only valid if afcautoon is set 0 afc register is not cleared before a new afc phase 1 afc register is cleared before a new afc phase 2 afcautoon rw 0 0 afc is performed each time afcstart is set 1 afc is performed each time rx mode is entered 1 afcclear w 0 clears the afcvalue if set in rx mode. always reads 0 regafcfei (0x1e) 0 afcstart w 0 triggers an afc when set. always reads 0. regafcmsb (0x1f) 7-0 afcvalue(15:8) r 0x00 msb of the afcvalue, 2?s complement format regafclsb (0x20) 7-0 afcvalue(7:0) r 0x00 lsb of the afcvalue, 2?s complement format frequency correction = afcvalue x fstep regfeimsb (0x21) 7-0 feivalue(15:8) r - msb of the measured frequency offset, 2?s complement regfeilsb (0x22) 7-0 feivalue(7:0) r - lsb of the measured frequency offset, 2?s complement frequency error = feivalue x fstep 7-2 - r 000000 unused 1 rssidone r 1 0 rssi is on-going 1 rssi sampling is finished, result available regrssiconfig (0x23) 0 rssistart w 0 trigger a rssi measurement when set. always reads 0. regrssivalue (0x24) 7-0 rssivalue r 0xff absolute value of the rssi in dbm, 0.5db steps. rssi = - rssivalue/2 [dbm]
page 69 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 6.5. irq and pin mapping registers table 27 irq and pin mapping registers name (address) bits variable name mode default value description 7-6 dio0mapping rw 00 5-4 dio1mapping rw 00 3-2 dio2mapping rw 00 regdiomapping1 (0x25) 1-0 dio3mapping rw 00 7-6 dio4mapping rw 00 5-4 dio5mapping rw 00 mapping of pins dio0 to dio5 see table 21 for mapping in continuous mode see table 22 for mapping in packet mode 3 - r 0 unused regdiomapping2 (0x26) 2-0 clkout rw 111 * selects clkout frequency: 000 fxosc 001 fxosc / 2 010 fxosc / 4 011 fxosc / 8 100 fxosc / 16 101 fxosc / 32 110 rc (automatically enabled) 111 off 7 modeready r 1 set when the operation mode requested in mode , is ready - sleep: entering sleep mode - standby: xo is running - fs: pll is locked - rx: rssi sampling starts - tx: pa ramp-up completed cleared when changing operating mode. 6 rxready r 0 set in rx mode, after rssi, agc and afc. cleared when leaving rx. 5 txready r 0 set in tx mode, after pa ramp-up. cleared when leaving tx. 4 plllock r 0 set (in fs, rx or tx) when the pll is locked. cleared when it is not. 3 rssi rwc 0 set in rx when the rssivalue exceeds rssithreshold. cleared when leaving rx. 2 timeout r 0 set when a timeout occurs (see timeoutrxstart and timeoutrssithresh ) cleared when leaving rx or fifo is emptied. 1 automode r 0 set when entering intermediate mode. cleared when exiting intermediate mode. please note that in sleep mode a small delay can be observed between automode interrupt and the corresponding enter/exit condition. regirqflags1 (0x27) 0 syncaddressmatch r/rwc 0 set when sync and address (if enabled) are detected. cleared when leaving rx or fifo is emptied. this bit is read only in packet mode, rwc in continuous mode
page 70 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7 fifofull r 0 set when fifo is full (i.e. contains 66 bytes), else cleared. 6 fifonotempty r 0 set when fifo contains at least one byte, else cleared 5 fifolevel r 0 set when the number of bytes in the fifo strictly exceeds fifothreshold , else cleared. 4 fifooverrun rwc 0 set when fifo overrun occurs. (except in sleep mode) flag(s) and fifo are cleared when this bit is set. the fifo then becomes immediately available for the next transmission / reception. 3 packetsent r 0 set in tx when the complete packet has been sent. cleared when exiting tx. 2 payloadready r 0 set in rx when the payload is ready (i.e. last byte received and crc, if enabled and crcautoclearoff is cleared , is ok). cleared when fifo is empty. 1 crcok r 0 set in rx when the crc of the payload is ok. cleared when fifo is empty. regirqflags2 (0x28) 0 - r 0 unused regrssithresh (0x29) 7-0 rssithreshold rw 0xe4 * rssi trigger level for rssi interrupt : - rssithreshold / 2 [dbm] regrxtimeout1 (0x2a) 7-0 timeoutrxstart rw 0x00 timeout interrupt is generated timeoutrxstart *16*t bit after switching to rx mode if rssi interrupt doesn?t occur (i.e. rssivalue > rssithreshold) 0x00: timeoutrxstart is disabled regrxtimeout2 (0x2b) 7-0 timeoutrssithresh rw 0x00 timeout interrupt is generated timeoutrssithresh *16*t bit after rssi interrupt if payloadready interrupt doesn?t occur. 0x00: timeoutrssithresh is disabled
page 71 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 6.6. packet engine registers table 28 packet engine registers name (address) bits variable name mode default value description regpreamblemsb (0x2c) 7-0 preamblesize(15:8) rw 0x00 size of the preamble to be sent (from txstartcondition fulfilled). (msb byte) regpreamblelsb (0x2d) 7-0 preamblesize(7:0) rw 0x03 size of the preamble to be sent (from txstartcondition fulfilled). (lsb byte) 7 syncon rw 1 enables the sync word generation and detection: 0 off 1 on 6 fifofillcondition rw 0 fifo filling condition: 0 if syncaddress interrupt occurs 1 as long as fifofillcondition is set 5-3 syncsize rw 011 size of the sync word: ( syncsize + 1) bytes regsyncconfig (0x2e) 2-0 synctol rw 000 number of tolerated bit errors in sync word regsyncvalue1 (0x2f) 7-0 syncvalue(63:56) rw 0x01 * 1 st byte of sync word. (msb byte) used if syncon is set. regsyncvalue2 (0x30) 7-0 syncvalue(55:48) rw 0x01 * 2 nd byte of sync word used if syncon is set and (syncsize +1) >= 2. regsyncvalue3 (0x31) 7-0 syncvalue(47:40) rw 0x01 * 3 rd byte of sync word. used if syncon is set and (syncsize +1) >= 3. regsyncvalue4 (0x32) 7-0 syncvalue(39:32) rw 0x01 * 4 th byte of sync word. used if syncon is set and (syncsize +1) >= 4. regsyncvalue5 (0x33) 7-0 syncvalue(31:24) rw 0x01 * 5 th byte of sync word. used if syncon is set and (syncsize +1) >= 5. regsyncvalue6 (0x34) 7-0 syncvalue(23:16) rw 0x01 * 6 th byte of sync word. used if syncon is set and (syncsize +1) >= 6. regsyncvalue7 (0x35) 7-0 syncvalue(15:8) rw 0x01 * 7 th byte of sync word. used if syncon is set and (syncsize +1) >= 7. regsyncvalue8 (0x36) 7-0 syncvalue(7:0) rw 0x01 * 8 th byte of sync word. used if syncon is set and (syncsize +1) = 8.
page 72 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7 packetformat rw 0 defines the packet format used: 0 fixed length 1 variable length 6-5 dcfree rw 00 defines dc-free encoding/decoding performed: 00 none (off) 01 manchester 10 whitening 11 reserved 4 crcon rw 1 enables crc calculation/check (tx/rx): 0 off 1 on 3 crcautoclearoff rw 0 defines the behavior of the packet handler when crc check fails: 0 clear fifo and restart new packet reception. no payloadready interrupt issued. 1 do not clear fifo. payloadready interrupt issued. 2-1 addressfiltering rw 00 defines address based filtering in rx: 00 none (off) 01 address field must match nodeaddress 10 address field must match nodeaddress or broadcastaddress 11 reserved regpacketconfig1 (0x37) 0 - rw 0 unused regpayloadlength (0x38) 7-0 payloadlength rw 0x40 if packetformat = 0 (fixed), payload length. if packetformat = 1 (variable), max length in rx, not used in tx. regnodeadrs (0x39) 7-0 nodeaddress rw 0x00 node address used in address filtering. regbroadcastadrs (0x3a) 7-0 broadcastaddress rw 0x00 broadcast address used in address filtering. 7-5 entercondition rw 000 interrupt condition for entering the intermediate mode: 000 none (automodes off) 001 rising edge of fifonotempty 010 rising edge of fifolevel 011 rising edge of crcok 100 rising edge of payloadready 101 rising edge of syncaddress 110 rising edge of packetsent 111 falling edge of fifonotempty (i.e. fifo empty) 4-2 exitcondition rw 000 interrupt condition for exiting the intermediate mode: 000 none (automodes off) 001 falling edge of fifonotempty (i.e. fifo empty) 010 rising edge of fifolevel or timeout 011 rising edge of crcok or timeout 100 rising edge of payloadready or timeout 101 rising edge of syncaddress or timeout 110 rising edge of packetsent 111 rising edge of timeout regautomodes (0x3b) 1-0 intermediatemode rw 00 intermediate mode: 00 sleep mode (sleep) 01 standby mode (stdby) 10 receiver mode (rx) 11 transmitter mode (tx)
page 73 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7 txstartcondition rw 1 * defines the condition to start packet transmission : 0 fifolevel (i.e. the number of bytes in the fifo exceeds fifothreshold) 1 fifonotempty (i.e. at least one byte in the fifo) regfifothresh (0x3c) 6-0 fifothreshold rw 0001111 used to trigger fifolevel interrupt. 7-4 interpacketrxdelay rw 0000 after payloadready occurred, defines the delay between fifo empty and the start of a new rssi phase for next packet. must match the transmitter?s pa ramp-down time. - tdelay = 0 if interpacketrxdelay >= 12 - tdelay = (2 interpacketrxdelay ) / bitrate otherwise 3 - rw 0 unused 2 restartrx w 0 forces the receiver in wait mode, in continuous rx mode. always reads 0. 1 autorxrestarton rw 1 enables automatic rx re start (rssi phase) after payloadready occurred and packet has been completely read from fifo: 0 off. restartrx can be used. 1 on. rx automatically restarted after interpacketrxdelay . regpacketconfig2 (0x3d) 0 aeson rw 0 enable the aes encryption/decryption: 0 off 1 on (payload limited to 66 bytes maximum) regaeskey1 (0x3e) 7-0 aeskey(127:120) w 0x00 1 st byte of cipher key (msb byte) regaeskey2 (0x3f) 7-0 aeskey(119:112) w 0x00 2 nd byte of cipher key regaeskey3 (0x40) 7-0 aeskey(111:104) w 0x00 3 rd byte of cipher key regaeskey4 (0x41) 7-0 aeskey(103:96) w 0x00 4 th byte of cipher key regaeskey5 (0x42) 7-0 aeskey(95:88) w 0x00 5 th byte of cipher key regaeskey6 (0x43) 7-0 aeskey(87:80) w 0x00 6 th byte of cipher key regaeskey7 (0x44) 7-0 aeskey(79:72) w 0x00 7 th byte of cipher key regaeskey8 (0x45) 7-0 aeskey(71:64) w 0x00 8 th byte of cipher key regaeskey9 (0x46) 7-0 aeskey(63:56) w 0x00 9 th byte of cipher key regaeskey10 (0x47) 7-0 aeskey(55:48) w 0x00 10 th byte of cipher key regaeskey11 (0x48) 7-0 aeskey(47:40) w 0x00 11 th byte of cipher key regaeskey12 (0x49) 7-0 aeskey(39:32) w 0x00 12 th byte of cipher key regaeskey13 (0x4a) 7-0 aeskey(31:24) w 0x00 13 th byte of cipher key
page 74 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet regaeskey14 (0x4b) 7-0 aeskey(23:16) w 0x00 14 th byte of cipher key regaeskey15 (0x4c) 7-0 aeskey(15:8) w 0x00 15 th byte of cipher key regaeskey16 (0x4d) 7-0 aeskey(7:0) w 0x00 16 th byte of cipher key (lsb byte) 6.7. temperature sensor registers table 29 temperature sensor registers name (address) bits variable name mode default value description 7-4 - r 0000 unused 3 tempmeasstart w 0 triggers the temperature measurement when set. always reads 0. 2 tempmeasrunning r 0 set to 1 while the temperature measurement is running. toggles back to 0 when the measurement has completed. the receiver can not be used while measuring temperature regtemp1 (0x4e) 1-0 - r 01 unused regtemp2 (0x4f) 7-0 temp va l ue r - measured temperature -1c per lsb needs calibration for accuracy 6.8. test registers table 30 test registers name (address) bits variable name mode default value description regtestlna (0x58) 7-0 sensitivityboost rw 0x1b high sensitivity or normal sensitivity mode: 0x1b normal mode 0x2d high sensitivity mode regtestpa1 (0x5a) 7-0 pa13dbm1 rw 0x55 set to 0x5d for +20 dbm operation on pa_boost. 0x55 normal mode and rx mode 0x5d +20 dbm mode revert to 0x55 when receiving or using pa0 regtestpa2 (0x5c) 7-0 pa13dbm2 rw 0x70 set to 0x7c for +20 dbm operation on pa_boost 0x70 normal mode and rx mode 0x7c +20 dbm mode revert to 0x70 when receiving or using pa0 regtestdagc (0x6f) 7-0 continuousdagc rw 0x30 * fading margin improvement, refer to 3.4.4 0x00 normal mode 0x20 improved margin, use if afclowbetaon=1 0x30 improved margin, use if afclowbetaon=0 regtestafc (0x71) 7-0 lowbetaafcoffset rw 0x00 afc offset set for low modulation index systems, used if afclowbetaon=1 . offset = lowbetaafcoffset x 488 hz
page 75 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7. application information 7.1. crystal resonator specification table 31 shows the crystal resonator sp ecification for the crystal reference o scillator circuit of the rfm69w. this specification covers the full range of operation of the rfm69w and is employed in the reference design. table 31 crystal specification symbol description conditions min typ max unit fxosc xtal frequency 26 - 32 mhz rs xtal serial resistance - 30 140 ohms c0 xtal shunt capacitance - 2.8 7 pf cload external foot capacitance on each pin xta and xtb 8 16 22 pf notes - the initial frequency tolerance, temperature st ability and ageing performance should be chosen in accordance with the target operating temperature range and the receiver bandwidth selected. - the loading capacitance should be applied externally, and adapted to the actual cload specification of the xtal. - a minimum xtal frequency of 28 mhz is required to cover the 863-870 mhz band, 29 mhz for the 902-928 mhz band 7.2. reset of the module a power-on reset of the rfm69w is triggered at power up. a dditionally, a manual reset can be issued by controlling pin reset. 7.2.1. por if the application requires the disconnection of vdd from th e rfm69w, despite of the extremely low sleep mode current, the user should wait for 10 ms from of the end of the po r cycle before commencing communications over the spi bus. pin 6 (reset) should be left floating during the por sequence. vdd reset pin (output) undefined wait f or 10 ms module is ready from this point on figure 39. por timing diagram please note that any clkout activity can also be used to detect that the module is ready.
page 76 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com advanced communications & sensing datasheet 7.2.2. manual reset a manual reset of the rfm69w is possible even for applicat ions in which vdd cannot be physically disconnected. the reset pin should be pulled high for a hundred microseconds , and then released. the user should then wait for 5 ms before using the module. vdd reset pin high-z > 100 us ??1?? wait for 5 ms high-z module is ready from this point on (input) figure 40. manual reset timing diagram note whilst pin reset is driven hi gh, an over current consumption of up to ten milliamps can be seen on vdd. 7.3. reference design please contact your representative for evaluation tools, reference designs and design assistance. note that all schematics shown in this section are full schematics, listing all required components, including decoupling capacitors. figure 41. +13dbm schematic
page 77 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com d communications & sensing datasheet 8. packaging information 8.1. s2 package outline drawing fi g ure 42: s2 packa g in g outline drawin g
page 78 rfm69w tel: + 86-755-82973805 fax: + 86- 755-82973550 e-mail: sales@hoperf.com http:/ / www.hoperf.com adv 9. ordering information rfm69w 433 s2 p/n: rfm69w-315s2 rfm69w module at 315m hz band, smd package p/n: rfm69w-433s2 rfm69w module at 433m hz band, smd package p/n: RFM69W-868S2 rfm69w module at 868m hz band, smd package p/n: rfm69w-915s2 rfm69w module at 915m hz band, smd package hope microelectronics co.,ltd add: 2/f, building 3, pingshan private enterprise science and technology park, lishan road, xili town, nanshan district, shenzhen, guangdong, china tel: 86-755-82973805 fax: 86-755-82973550 email: sales@hoperf.com website: http://www.hoperf.com http://www.hoperf.cn this document may contain prelimi nary information and is subject to change by hope microelectronics without notice. hope microelectronics assumes no responsibility or liability for any use of the information contained herein. nothing in this doc ument shall operate as an express or implied license or indemnity under t he intellectual property rights of hope microelectronics or third parties. t he products described in this document are not intended for use in implantation or other direct life support applications where malfunction may result in the direct physical harm or injury to persons. no warranties of any kind, including, but not limited to, the implied warranties of mechantability or fitness for a articular purpose, are offered in this document. ?2006, hope microelectronics co.,ltd. all rights reserved. package o p eration ban d mode type


▲Up To Search▲   

 
Price & Availability of RFM69W-868S2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X